web.config and custom errors

thiggs

Guppy
I can't see the raw asp.net errors although I've set mode for customErrors to off. I've searched the forum postings and apparently I'm not the only one who's had this issue. However, although some people have seemed to fix the problem, no one has posted their solution.

Help!

To re-emphasize, my web.config has custom errors already set to off but I'm getting the "friendly" .net error page anyway.

Thanks in advance.
 
From memory, I think the "Off" word is case-sensitive. Make sure that's right.

I've also had this problem where the settings were being taken from a web.config file in a higher level directory.

If all else fails and you can't get it to report the detailed error message, put some code in the Application_Error() function in your global.asax(.cs) file to write the errors to a text file. Or you could get it to email the error or write to a database.
 
Try putting the debug statement on your language tag, i.e.,

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" Debug="true"%>

Just remember to remove it before it goes public.
 
Back
Top