Debug .NET customErrors not showing

A common issue people face when first migrating/installing their .NET web application is an error which suggests you turn custom errors off to allow a detailed view of the error message. Commonly this will tell you to apply the following code to your Web.config:

<system.web>
<customErrors mode="Off">
</customErrors
</system.web>

In some situations you will find that this takes no affect, check the following:

  1. You may have the wrong .NET framework version selected within the control panel. Select ASPNET 1.1 or ASPNET 2.0 (which at time of writing 2.0 also enables .NET 3.5).
  2. There is a syntax or configuration error with your Web.config. Work through the Web.config section by section, double checking code, database and security configurations.
  3. If all else fails, start with the bare minimum Web.config and build it up section by section.
This entry was posted in Windows, ASP & .NET and tagged , . Bookmark the permalink.

Leave a Reply

Please DO NOT use this form to submit support requests, all information submitted will be PUBLICLY VISIBLE.

Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>