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>

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

Do you provide catch all email accounts in Shared Hosting?

We do not offer catch all account in shared hosting, due to potential problems with spam emails...

What is an FQDN (Fully Qualified Domain Name)?

The FQDN (Fully Qualified Domain Name) is an entire domain name address, including hostname,...

How Much Email Disk Space Do I Get With Windows Shared Hosting Plans?

The email disk space limit in Windows shared hosting is 2 GB per domain. That means, 2 GB email...

When exactly should I initiate the cancellation of my hosting account with my existing service provider?

All you need to do is to wait until the nameservers are fully propagated and your website is...

How to Deploy Visual Studio 2015 Web Application Using Web Deploy Method?

Follow below instructions to get started with publishing your Visual Studio 2015 Web Application...