What is this for?
ASP.NET error suggested that I have to put this in my web.config file. What do these lines of codes do?
<system.web>
<customErrors mode="Off"/>
</system.web>
You can read about <customErrors> element here on MSDN.
Specifically:
Specifies that custom errors are disabled. The detailed ASP.NET errors are shown to the remote clients and to the local host.
To customize the default error page, one will have to change the default configuration settings of the application
There are three error modes in which an ASP.NET application can work:
The Error mode attribute determines whether or not an ASP.NET error message is displayed. By default, the mode value is set to "RemoteOnly".
When the error attribute is set to "Off", ASP.NET uses its default error page for both local and remote users in case of an error.
In case of "On" Mode, ASP.NET uses user-defined custom error page instead of its default error page for both local and remote users. If a custom error page is not specified, ASP.NET shows the error page describing how to enable remote viewing of errors.
ASP.NET error page is shown only to local users. Remote requests will first check the configuration settings for the custom error page or finally show an IIS error.
More Details and referred from here and this MSDN Site
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With