Enabling Detailed Error Responses in IIS

By default, detailed error responses for certain HTTP request errors are disabled in IIS, as they may contain identifying information about the application. This usually affects client-side errors with status codes ranging from 400 to 499 and server-side errors with status codes ranging from 500 to 599.

You can enable detailed error responses in the IIS Manager or by modifying the web.config file.

To enable detailed error responses in IIS Manager, do the following:

  1. Launch IIS Manager.
  2. Select your website in the treeview and double-click the Error Pages icon on the site home page.
  3. In the Actions pane, click Edit Feature Settings...
  4. In the Edit Error Pages Settings dialog box, select Detailed errors.
  5. Click OK.

You can also enable detailed error responses by copying and pasting the following code into your web.config file:

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

For more information, please see the Microsoft documentation.

12.04.2024 18:16:03

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.