How To Enable Detailed Error Pages For Your Website

May 26, 2023 / Web Development

In this article, we will explain how to enable detailed error pages for the website.

Follow the steps to enable detailed error pages:

You need to modify your application’s web.config file and set attributes through these steps:

  1. Locate your web.config file in the wwwroot directory of your web application, and edit it with your choice of editor.
  2. Now, add the following entries to your web.config file to disable generic error and save the file.If these entries already exist, set their values as shown below:
    <configuration>
    
    <system.web>
    
          <customErrors mode="Off" />
    
    </system.web><system.webServer>
    
          <httpErrors errorMode="Detailed" />
    
    </system.webServer>
    
    </configuration>

In this way, you can enable detailed error pages for your website. For more updates visit our website and find out the most recent web hosting plans.

Spread the love