Enabling detailed error reporting on your web site

Programming > ASP.NET

By default IIS7 and IIS8 display non-detailed error messages which helps to improve security.

However, there are times when you need to display detailed error messages. To enable detailed error messages in your website you need to modify the web.config file in your website root folder. Adding the "httpErrors" node below within the "configuration/system.webServer" node (Create the nodes if they don't exist).


<httpErrors errorMode="Detailed" />


Once added all pages within this website will show detailed error messages when reporting errors. We recommend you remove this setting for best security on live production websites. Please also see the following URL for more information http://www.iis.net/ConfigReference/system.webServer/httpErrors