How to enable detailed error information from web.config file?

By default, IIS web server will hide detailed error information to prevent exposing more information of your web application. Though, there are times when your web application throws generic error and you want to see actual error to fix it. To enable detailed error information, you’ll have to modify the web.config file of your application and set attributes. Here are the steps.

  1. Locate the web.config file in the wwwroot directory of your web application. Edit it with your choice of editor.

  2. Add following entries to your web.config file to disable generic errors 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>

→ Looking to enable PHP error log for Wordpress website? Please refer to enable PHP error log for more details.

→ Looking to enable PHP error reporting? Please refer to enable PHP error reporting for more details.

Related Articles

Fix :: nopCommerce Website Home Page Redirecting to login?ReturnUrl=%2f

Problem Statement Recently one of our customer faced strange issue wherein nopCommerce website...

Is there a way to access my website using an IP address and not with a domain name?

As your website is hosted on shared hosting environment, you can not browse the site directly...

Do I get an Dedicated IP in Shared Hosting?

In Shared Hosting, by default, your website is hosted on a shared IP address. If you need a...

Is there any limitation in Table Numbers in Microsoft SQL Server database?

Depending on SQL server edition and environment, there will be limitation. Please refer to the...

What Nameservers should I set to my website?

Nameservers information will be available in the login details email. You can also contact our...

  • 0 Users Found This Useful

Was this answer helpful?