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

   <httpErrors errorMode="Detailed" />


Before enabling detailed error messages

Error message screenshot

After enabling detailed errors

Error screenshot

Shane Bartholomeusz

G’day, I’m a technical solutions consultant based in Perth, Australia that specialises in the Microsoft technology stack, including .NET, Dynamics 365, Azure and general web development etc.

This blog is my place to share my thoughts, helpful solutions and just random nerdy stuff.
Shane Bartholomeusz

Latest posts by Shane Bartholomeusz (see all)