Can’t disable customErrors in SharePoint

There are 3 setting changes you need to make to the SharePoint web.config to show the real error messages and call stack – rather than the out-of-the-box message that is often very vague and unhelpful for troubleshooting.

The other day I still couldn’t get it to show the real error message even though I have applied these settings. It turns out there are 2 different web.config:

  • Under C:\inetpub\wwwroot\wss\VirtualDirectories\80:  this web.config applies to the content pages in SharePoint.
  • Under [SharePointRoot]\TEMPLATE\LAYOUTS:  this web.config applies to the application pages in SharePoint, i.e. pages under the _layouts/ virtual parth.

The 3 setting changes you need to make are:

  • <customErrors mode=”On” />  –  change this to “Off”
  • <SafeMode MaxControls=”200″ CallStack=”false” …..>  –  change CallStack to “true”
  • <compilation batch=”false” debug=”false” optimizeCompilations=”true”>  –  change debug to “true”
Advertisements

About Bernado

Based in Australia, I am a freelance SharePoint and Dynamics CRM developer. I love developing innovative solutions that address business and everyday problems. Feel free to contact me if you think I can help you with your SharePoint or CRM implementation.
This entry was posted in SharePoint. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s