Knowledgebase

How do I enable detailed error messages in the web.config of my website?

Detailed Errors allows for debugging errors in your websites code.

Without detailed errors enabled, upon an error – the webserver will display a 500 Internal Server Error.

You are able to add the code below to your web.config file within the

<system.webServer> </system.webServer>

to enable detailed error :


<httpErrors errorMode="Detailed"/>

Here is an example:

<configuration>
   <system.webServer>
      <httpErrors errorMode="Detailed"/>
   </system.webServer>
</configuration>

The code sample above does not constitute a complete of your web.config file.
Please do not replace your existing web.config file with the code above and do a backup of your web.config file before changing.

  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

Can I use ASP.NET State Service?

ASP.NET state service is not enabled due to the fact on shared hosting it keeps the session alive...

Force to HTTPS

In the following example we will redirect HTTP to HTTPs using URL Rewrite:Edit your web.config...

Setting up .NET Core on Unmanaged Windows VPS

At times after publishing .NET Core Web Application to a Windows Server web server it may not...

Troubleshooting ASP.NET site

In most cases the error should display on the screen.However if it does not you can enable error...

How to Enable ASP.NET Debugging in Plesk

here may be times you need to see more logging or debugging information for your ASP.NET...