By default, IIS and ASP.NET hide detailed error information to prevent revealing sensitive information about your web application:


Sometimes you need to see error details (think shared hosting). Add these entries to your web.config file to disable generic errors:
<configuration>
  <system.web>
    <customErrors mode="Off" />
  </system.web>
  <system.webServer>
    <httpErrors errorMode="Detailed" />
  </system.webServer>
</configuration>
Resources