To see this error, you need customErrors off , for example:
<customErrors mode="Off"></customErrors>
The documents specify the parameters for the mode attribute:
- On . Indicates that user errors are enabled. If the defaultRedirect attribute is not specified, users see a general error. User errors are displayed to remote clients and the local host.
- Off . Indicates that user errors are disabled. Detailed ASP.NET errors are displayed to remote clients and the local host.
- RemoteOnly . Indicates that user errors are displayed only to remote clients and that ASP.NET errors are displayed to the local host. This is the default value.
Attention!
Setting Off on a real production site is very risky , as some error messages may compromise sensitive data on your site (for example, code and paths, possibly even passwords).
Nick craver
source share