By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

customErrors mode="off"

P: n/a
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>
Nov 19 '05 #1
Share this Question
Share on Google+
21 Replies


P: n/a
1. Are you using multiple web.config files? Check all of them.
2. What about machine.config?

Leszek Taratuta

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>

Nov 19 '05 #2

P: n/a
1) All web.config have customerrors = off
2) I'm not using a machine.config, what is this for?

THX for your reply !
Nic.

"Leszek Taratuta" <ad*@taratuta.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
1. Are you using multiple web.config files? Check all of them.
2. What about machine.config?

Leszek Taratuta

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>


Nov 19 '05 #3

P: n/a
I believe it's case-sensitive - "Off", not "off".

Bob Lehmann

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>

Nov 19 '05 #4

P: n/a
The machine.config file provides settings for the entire machine, not only
for a single Web Application.
It resides in the .NET directory. On my machine it is:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G
Try searching your hard-drive for machine.config.
This file contains <customErrors mode="RemoteOnly"/> by default.
Anyway this file (machine.config) is taken into account only when you do not
have web.config, so it is unlikely source of your problem.

Also check web.config that provides settings for your application. Maybe you
have multiple <customErrors> nodes. They might override their settings.

Leszek

"nicholas" <mu********@hotmail.com> wrote in message
news:ON**************@TK2MSFTNGP15.phx.gbl...
1) All web.config have customerrors = off
2) I'm not using a machine.config, what is this for?

THX for your reply !
Nic.

"Leszek Taratuta" <ad*@taratuta.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
1. Are you using multiple web.config files? Check all of them.
2. What about machine.config?

Leszek Taratuta

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>



Nov 19 '05 #5

P: n/a
in my web.config it is OK: Off

THX anyway

"Bob Lehmann" <none> wrote in message
news:ut**************@TK2MSFTNGP15.phx.gbl...
I believe it's case-sensitive - "Off", not "off".

Bob Lehmann

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>


Nov 19 '05 #6

P: n/a
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" <mu********@hotmail.com> wrote in message
news:en**************@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>


Nov 19 '05 #7

P: n/a
- The website is hosted, so I cannot check for the machine.config.
- my web.config has just 1 customerror line

On my testing server I see the detailed error.

realy weird ....

"Leszek Taratuta" <ad*@taratuta.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
The machine.config file provides settings for the entire machine, not only
for a single Web Application.
It resides in the .NET directory. On my machine it is:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFI G
Try searching your hard-drive for machine.config.
This file contains <customErrors mode="RemoteOnly"/> by default.
Anyway this file (machine.config) is taken into account only when you do not have web.config, so it is unlikely source of your problem.

Also check web.config that provides settings for your application. Maybe you have multiple <customErrors> nodes. They might override their settings.

Leszek

"nicholas" <mu********@hotmail.com> wrote in message
news:ON**************@TK2MSFTNGP15.phx.gbl...
1) All web.config have customerrors = off
2) I'm not using a machine.config, what is this for?

THX for your reply !
Nic.

"Leszek Taratuta" <ad*@taratuta.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
1. Are you using multiple web.config files? Check all of them.
2. What about machine.config?

Leszek Taratuta

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>
>
>



Nov 19 '05 #8

P: n/a
Hi,
Are you sure that the web.config is in a directory
marked as an Application or a Virtual Directory in IIS ? As it is hosted, I can't see if they did it OK, unfortunately.
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. I know the error message, my hoster forwarded it to me.
It is a message that says that the sql-server cannot be found.
So there was a problem in my connection string.
That is solved. But I would like to understand why I couldn't see the error.
btw, in IE, do you have "Show friendly HTTP error messages"
selected in "Tools", "Internet Options", "Advanced" ? No.
If I generate the same error on my testing server, I can see the error.

Conclusion: I think the problem situates itself at the hoster.
Must be some virtual directory thing.

Thx a lot!
Nic

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl... 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" <mu********@hotmail.com> wrote in message
news:en**************@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>


Nov 19 '05 #9

P: n/a
It sounds like you are accessing the page remotely and not locally. Doing so
will also cause this to happen. I believe there is something along the lines
of remoteerrors in the web.config that you have to turn on.
Nov 19 '05 #10

P: n/a
I'm not sure whether this problem is related to what I had, but still I'm
sharing it over here. On one of my production server my application was
throwing exception from Application_OnStart event but it was not getting
displayed in the browser window. In the end I had to capture this error in
Application_OnError event and that solved my problem.

This happened with .NET 1.1.
"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>

Nov 19 '05 #11

P: n/a
That's not what you wrote.

Bob Lehmann

"nicholas" <mu********@hotmail.com> wrote in message
news:eL**************@TK2MSFTNGP09.phx.gbl...
in my web.config it is OK: Off

THX anyway

"Bob Lehmann" <none> wrote in message
news:ut**************@TK2MSFTNGP15.phx.gbl...
I believe it's case-sensitive - "Off", not "off".

Bob Lehmann

"nicholas" <mu********@hotmail.com> wrote in message
news:en**************@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>



Nov 19 '05 #12

P: n/a
I get that exact same error when I try to use MSN Messenger, how do I
fix it? Please e-mail me if you can help. Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #13

P: n/a


PLEASE, HELP ME!!
MY MSN MESSENGER PROGRAM HAS AN ERROR AND I DONīT KNOW HOW CAN I DO TO
REPAIR. PLEASE, SEND ME THE SOLUTION.

ge************@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #14

P: n/a
Don't get your panties in a bunch.

The MSN Messenger service is down.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Gema ." <ge************@hotmail.com> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...


PLEASE, HELP ME!!
MY MSN MESSENGER PROGRAM HAS AN ERROR AND I DONīT KNOW HOW CAN I DO TO
REPAIR. PLEASE, SEND ME THE SOLUTION.

ge************@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #15

P: n/a

Lucy Lou
lu********@aol.com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #16

P: n/a


*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #17

P: n/a


natural cures, I made an erro on the application

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #18

P: n/a


natural cures

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #19

P: n/a


natural cures, I made an error on the application

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #20

P: n/a


*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #21

P: n/a
"lisa" <no****@developmentnow.comwrote in message
news:33**********************************@developm entnow.com...
>i cannot read my page
From http://yq.search.yahoo.com/yq/search
What does this have to do with ASP.NET?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 27 '07 #22

This discussion thread is closed

Replies have been disabled for this discussion.