Skip to main content

Display error message (IIS)

How can I display detailed error messages?

Updated over a week ago

Would you like to display detailed error messages in IIS?
You can easily enable this yourself in the web.config file.

Just add the following line inside the <system.webServer> tag:

<httpErrors errorMode="Detailed"/>

If the web.config file does not yet exist, you need to create it first.

Example of a new configuration file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
</system.webServer>
</configuration>

Important note:

  • Once this option is enabled, you can no longer define custom HTTP error messages.

  • This function is only available on Windows / IIS.

Did this answer your question?