Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Unhandled Exceptions - ASP.Net

Reply
Thread Tools

Unhandled Exceptions - ASP.Net

 
 
tberry@vhb.com
Guest
Posts: n/a
 
      03-07-2006
I have just begun reviewing how to create a custom error page for
unhandled exceptions. I found if I set custom HTML pages in Web.config
those work fine. But referencing .aspx pages in Web.config produced the
standard exception page.

I then used Server.Transfer(name.aspx); in the Application_Error method
in Global.asax.cs. This of course worked. My question is why didn't
Web.config redirect to the aspx page? The code in Web.config is:

<customErrors mode="On" defaultRedirect="GenericError.aspx">
</customErrors>

I am using VS.Net 2003

Thank you
T Berry

 
Reply With Quote
 
 
 
 
Darren Kopp
Guest
Posts: n/a
 
      03-07-2006
Did you try

<customErrors mode="On" defaultRedirect="GenericError.aspx" />

I would use that since you don't define specific errors. Also, you
don't have any code in your GenericError.aspx that would throw an
exception do you?

-Darren Kopp
http://blog.secudocs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
an unhandled win32 exception was unhandled occurred in inetinfo.exe Warren Tang ASP .Net 1 09-23-2008 03:01 PM
Catching unhandled exceptions using HttpModules Amil Hanish ASP .Net 0 04-12-2006 11:51 PM
How do I catch unhandled exceptions Alan Silver ASP .Net 5 03-23-2006 08:51 PM
Unhandled Exceptions thrown Winista ASP .Net 0 03-22-2006 08:02 PM
Unhandled Exceptions & Framesets terry ASP .Net 5 07-03-2003 04:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57