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> 21 4929
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>
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>
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>
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>
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>
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>
- 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> > >
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>
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.
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>
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>
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!
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Han |
last post by:
Has any one ran into this problem? I'm trying to debug an
error on a remote ASP.NET server. I've set <customErrors
mode = "Off"> in the web.config but it does not give a
detailed, non-filtered...
|
by: Julia |
last post by:
Hi,
I have tried everything (at least everything I know) but it does not
work I only get friendly errors
I did set
customErrors mode="Off"
in all web condig files
Any one have an idea?!?
|
by: Menno Abbink |
last post by:
Hey All,
I'm developing a new website and I want the customer to be able to se my
work in progress so I have set up a server behind my ADSL-router. The server
is using W2003.
I've created a...
|
by: Savas Ates |
last post by:
I have a web application It works well in my local fodler.. When i upload it
to my web server i got
To enable the details of this specific error message to be viewable on
remote machines, please...
|
by: Savas Ates |
last post by:
I have a web application It works well in my local folder.. When i upload
it
to my web server i got
To enable the details of this specific error message to be viewable on
remote machines,...
|
by: Tor Inge Rislaa |
last post by:
I am prompted to implement the syntax below to be able to monitor the error
on the remote server trough my browser (client).
I can't seem to find where to place the code in my web.config file to...
|
by: =?Utf-8?B?bmt3?= |
last post by:
I want to use <customErrors mode="Off"/in the web.config file; but I want
to have custom error message for database time out error message. Is it
possible?
|
by: Andy Fish |
last post by:
Hi,
I cannot get <customErrors mode="Off"to work at all in .Net 2.0
if I set it to 'Off' it behaves as if it was set to 'RemoteOnly' i.e. I can
see the error detail when accessing it from the...
|
by: denny1824 |
last post by:
I have a working website. I copied all the files to a new folder in inetpub/wwwroot and then set that folder as a Virtual Directory in IIS. I try going to that site from the new folder and i am...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |