473,698 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Error Page Not Displaying

KJ
Below is my web.config file. It's not redirecting. It was at one time.
Please Help
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation defaultLanguage ="vb" debug="true" />
<customErrors mode="On" defaultRedirect ="error.aspx "/>
<authenticati on mode="None" />

<authorizatio n>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="1 0" pageOutput="fal se"
traceMode="Sort ByTime" localOnly="true " />

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data
source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>
<globalizatio n requestEncoding ="utf-8" responseEncodin g="utf-8" />

</system.web>

</configuration>
Nov 18 '05 #1
2 1202
When do you want it to redirect?
"KJ" wrote:
Below is my web.config file. It's not redirecting. It was at one time.
Please Help
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>

<system.web>
<compilation defaultLanguage ="vb" debug="true" />
<customErrors mode="On" defaultRedirect ="error.aspx "/>
<authenticati on mode="None" />

<authorizatio n>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="1 0" pageOutput="fal se"
traceMode="Sort ByTime" localOnly="true " />

<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data
source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>
<globalizatio n requestEncoding ="utf-8" responseEncodin g="utf-8" />

</system.web>

</configuration>

Nov 18 '05 #2
KJ
I'm trying to have all errors go to this page and display the error on
it. I got it to display. Now I just want the short error mesaage to
display on it. Not the long one which gives you the trace.
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2068
by: Ziggi | last post by:
Hi ! I have an ISAPI instalation of PHP over IIS5 server on Windows 2000. Everything works fine but as I am under website development I would like to keep PHP error messages turned on - for my development purpose. Unfortunately, that concludes that in case somebody types a fake address like: http://www.myurl/xyz.php the server replies with something like that:
6
3560
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html error page. All six steps in the article work just fine. Then at the end of the article, there is a little comment about redirecting errors to an aspx page (instead of an html page):
2
1360
by: Jorge Matos | last post by:
I think the answer is no, but I wanted to ask to be sure. Is it possible to handle an exception in Page_Error or Application_Error and not redirect to a custom error page? In other words I want the user to stay on the web page and have the exception message shown on the page instead of redirecting to another web page, the reason for this is that I don't want the user to lose any information they might have typed into any controls on the...
1
1148
by: Tom Conlon | last post by:
I have a classic problem, "asp.net app works fine on my PC with local IIS" but when i deploy to my web host (where i am a customer, not an admin), it doesn't work. So, boo-hoo, can't use VS debugging on server, and error details are not given by asp.net on its standard error page anymore. I understand i can define a custom error page, but do not see how to write the information i want to that page. Do you write to a file on the server,...
1
2435
by: robertlair | last post by:
I am having issues with a production server with the GetLastError() method. Here is what I am doing: Application_Error on Global ASAX: Note: I am doing it this way (with ClearError) because while researching, someone on a post said that Session state would not persist unless I cleared the error... didn't make sense, but it also didn't work before I put this in there too.
6
1583
by: Steve Amey | last post by:
Hi all I want to be able to throw a custom error up the call stack. I have looked around and it seems as though it's possible, but I can't get it to work :o( Below is some sample code. ------------------------------------------------------------ Public Class MainForm Public Sub Show Form Try
2
1483
by: Tony Hedge | last post by:
Hello, Framework: NET 1.1, Language VB So I am going through the basic walkthrough example in .NET on how to create a simple custom control. Takes about 2 minutes and when done I have a DLL that I can add to a toolbox in Web app. Problem is, once the control is in my toolbox I cannot drag it onto a web page!!! I get the dreaded 'O' with a line through it. I also tried in HTML view but when I switch to Design view I get a box...
2
1502
by: bdgreen | last post by:
Hi, I made a custom exception, derived from ApplicationException. If the exception is thrown, the erroring web page shows the line of code where I throw exception, and doesn't display the exception message. Do I need to catch my custom exception, and rethrow it as another type of exception to make the message display? I still want to page to error out, I don't want to catch it and return a user-friendly message or anything. The...
3
2014
by: Paul Cheetham | last post by:
Hi, I have created a custom error page for my web application (c#, .Net 2) In this page I am trying to get the details of the error that has occurred so that I can display it if required. (Error page defined in Web.config) I am using the following code:
0
797
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, The customerror mode is set to 'On' in my web.config and defaultredirect page = "error.htm". In case of any other errors the page was getting redirected to error.htm. When sql server was down , i got the following error displayed, Runtime error, Please turn off custom error mode in web.config to see the error. How do i avoid displaying this runtiem error to end user. Pls clarify
0
8600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9018
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8858
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7711
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3038
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2322
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.