Re: customErrors mode="off"

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Juan T. Llibre (nomailreplies_at_nowhere.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 14:33:27 -0400

Are you sure that the web.config is in a directory
marked as an Application or a Virtual Directory in IIS ?

If it is not, the web.config in the root directory,
or the settings in machine.config, will decide whether
custom errors will be displayed.

The default setting for custom errors in asp.net 1.1 is :
<customErrors mode="RemoteOnly" />

The possible settings are :

On : Always display custom errors

Off : Always display *ASP.NET* error pages
( Notice: this does *not* mean that no error messages
will be displayed. It means that ASP.NET error messages
will be displayed.

RemoteOnly : Display custom errors to remote
clients and ASP.NET errors to localhost

It could very well be ( in fact it probably is )
that you're seeing an ASP.NET error message,
and not a *custom* error page being displayed.

btw, in IE, do you have "Show friendly HTTP error messages"
selected in "Tools", "Internet Options", "Advanced" ?

Juan T. Llibre
ASP.NET MVP
===========
"nicholas" <murmurait1@hotmail.com> wrote in message
news:en6rW7k$EHA.2012@TK2MSFTNGP15.phx.gbl...
> Although in my web.config I have <customErrors mode="off" /> I still get
> no
> detailed errors.
> How comes ?
>
> THX
>
> This is what I get:
>
>
> Server Error in '/mywebfolder'Application.
> ----------------------------------------------------------------------------
> ----
>
> Runtime Error
> Description: An application error occurred on the server. The current
> custom
> error settings for this application prevent the details of the application
> error from being viewed remotely (for security reasons). It could,
> however,
> be viewed by browsers running on the local server machine.
>
> Details: To enable the details of this specific error message to be
> viewable
> on remote machines, please create a <customErrors> tag within a
> "web.config"
> configuration file located in the root directory of the current web
> application. This <customErrors> tag should then have its "mode" attribute
> set to "Off".
>
> <!-- Web.Config Configuration File -->
>
> <configuration>
> <system.web>
> <customErrors mode="Off"/>
> </system.web>
> </configuration>
>
> Notes: The current error page you are seeing can be replaced by a custom
> error page by modifying the "defaultRedirect" attribute of the
> application's
> <customErrors> configuration tag to point to a custom error page URL.
>
> <!-- Web.Config Configuration File -->
>
> <configuration>
> <system.web>
> <customErrors mode="RemoteOnly"
> defaultRedirect="mycustompage.htm"/>
> </system.web>
> </configuration>
>
>



Relevant Pages

  • Error messages (forwarded by friend)
    ... Hi finally got some of the event or error messages.. ... she said that it is a driver error.. ... If she has a fancy display card, ... Some display cards have no fans. ...
    (microsoft.public.windowsxp.basics)
  • Re: Error messages (forwarded by friend)
    ... Rainy ... > Hi finally got some of the event or error messages.. ... she said that it is a driver error.. ... Some display cards have no fans. ...
    (microsoft.public.windowsxp.basics)
  • App VisualStyle misbehaviour, runtime only (Vista)
    ... executing app all the buttons are displayed in Windows classic style, ... This time there were no error messages and the application ran ... OK, but as I say, it stubbornly refuses now to display the XP/Vista ... restore the XP/Vista Visual styles for buttons, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: [PHP] Question about form submitting / clarification
    ... in an onsubmit handler. ... What i don't know is how to display the error messages in the same page ... The function would display the form with print commands that would display the error messages. ... You will also need a print error function that takes the input element name and errors array as arguments. ...
    (php.general)
  • Re: Uploaded TeX
    ... What happens is that the 8pt italic font won't display as anything ... beginning, don't omit details, give exact error messages etc. ... messages you look in the .log file associated to you .tex file. ...
    (comp.text.tex)