472,119 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

customErrors mode="off"

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
21 4796
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
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
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
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
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
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
- 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
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
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
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
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
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


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
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

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


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


natural cures, I made an erro on the application

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


natural cures

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


natural cures, I made an error on the application

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


*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #21
"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.

Similar topics

1 post views Thread by Han | last post: by
4 posts views Thread by Julia | last post: by
1 post views Thread by Menno Abbink | last post: by
1 post views Thread by Savas Ates | last post: by
5 posts views Thread by Savas Ates | last post: by
2 posts views Thread by Tor Inge Rislaa | last post: by
3 posts views Thread by =?Utf-8?B?bmt3?= | last post: by
1 post views Thread by Andy Fish | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.