Turn off Asp.net Custom Errors in Web.config
Some times after hosting web
application on the server, we get unexpected error as shown in the below
fig. But we did get the detailed message for the unexpected errror. In
this article, I would like to share how can we get detailed message for
the unexpected error.
When we set the customErrors mode="Off" then we can easily track the error in the application as shown in the fig.
- <system.web>
- <customErrors mode="Off">
- </customErrors>
- ...
- ...
- </system.web>
Off Mode
This mode is responsible for displaying error mesage on local and remote server in case of an error.On Mode
This mode is responsible for displaying custom error page with message on local and remote server in case of an error. By using this mode, we can show our own custom error messages page for specific errors on local and remote server.RemoteOnly
This mode is responsible for displaying error mesage on remote server only in case of an error. By using this mode, we can show our own custom error messages page for specific errors on remote server only.