Turning On Custom Error Mode in SharePoint 2010

A generic application error on the server or an Unxpected Error may be the error you are getting most of the time. If so then the current custom error settings for the application prevent the details of the application error from being viewed. As I work in SharePoint 2007 the first things I do are listed below. First you have to open the web.confing file of the application C:\inetpub\wwwroot\wss\VirtualDirectories\.

Debug=”true” instead of the default of Debug=”false”
CallStack=”true” instead of the default of CallStack=”false”
CustomErrors=”Off” instead of the default of CustomErrors=”On”

This is all done still you get the error Server Error in ‘/’ Application.
Runtime Error.

To enable the details of this specific error message to be viewable on the local server machine.
Please ensure CustomErrors is set to “off” in all these places.

1. Make sure of the root web application has CustomErrors=”Off”
2. Make Sure C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\web.config has CustomErrors=”Off”.
3. For Central Admin verify in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config has CustomErrors=”Off”.

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami