How can I show detailed ASP errors?

Lloyd Cobb
Published: 21 June 2017Last updated: 23 October 2023
Share:

By default, Windows Server hides application errors from your website. You can override this by adding the following inside a 'web.config' file that will cause IIS to output any errors to your browser:

<configuration>
  <system.webServer>
      <httpErrors errorMode="Detailed" />
  </system.webServer>
  <system.web>
      <customErrors mode="Off" />
      <compilation debug="true" />
  </system.web>
</configuration>