Enabling Detailed Errors

By default, IIS hides detailed error messages however you can enable it through either of the following ways.

Obviously this should only be enabled in a non-production environment as it may create potential security implications.

IIS Manager Console method

  1. Open the IIS Manager console
  2. Click your website node
  3. Open the ‘Error Pages‘ configuration screen
  4. Click ‘Edit Feature Settings‘ from the right hand menu
  5. Choose the ‘Detailed errors‘ option.
IIS Manager Console Screenshot
IIS Manager Console Screenshot

Web.config file method

<configuration>
 <system.webServer>
   <httpErrors errorMode="Detailed" />
 </system.webServer>
</configuration>

Result

Before enabling detailed error messages

Error message screenshot

After enabling detailed errors

Error screenshot
Shane Bartholomeusz
Latest posts by Shane Bartholomeusz (see all)