I have a aspx page and it displays custom error but i can’t see a detailed error message.
My web.config looks like this,
<?xml version="1.0"?>
<configuration>
<appSettings />
<connectionStrings />
<system.web>
<compilation debug="true" />
<authentication mode="Windows" />
<customErrors mode="On" />
</system.web>
</configuration>
To see the error you need customErrors off, like this:
From the docs, here are the options for the
modeattribute:Warning
Setting
Offon a live-production site is very risky as some error messages might compromise sensitive data on your site (like code and paths maybe even passwords).