Re: customErrors mode="off"
From: Juan T. Llibre (nomailreplies_at_nowhere.com)
Date: 01/19/05
- Next message: MrMike: "Reference Request.Querystring in HTML"
- Previous message: Max: "Re: Web site switching to Euro"
- In reply to: nicholas: "customErrors mode="off""
- Next in thread: nicholas: "Re: customErrors mode="off""
- Reply: nicholas: "Re: customErrors mode="off""
- Messages sorted by: [ date ] [ thread ]
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>
>
>
- Next message: MrMike: "Reference Request.Querystring in HTML"
- Previous message: Max: "Re: Web site switching to Euro"
- In reply to: nicholas: "customErrors mode="off""
- Next in thread: nicholas: "Re: customErrors mode="off""
- Reply: nicholas: "Re: customErrors mode="off""
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|