Posts

Showing posts from February, 2012

Web.Config setting: Displaying Errors for .NET and SharePoint Sites

To display full errors and the stack trace of the error, you need to modify the web.config file for the Web Application which SharePoint is running on. There are a number of web.config files required to configure various components of SharePoint. See notes below for more information about modifying the web.config file to display errors. Enable Custom Errors : Set the customErrors mode to “Off” Find: customErrors mode=”On”  Change To:  customErrors mode=”Off” Enable the Call Stack Trace : Set the CallStack value of the SafeMode element to “true” Find: SafeMode … CallStack=”false” Change To:  SafeMode … CallStack=”true” Enable Debugging Mode : Set batch and debug to “true” Find: compilation batch=”false” debug=”false” Change To:  compilation batch=”true” debug=”true” Enable the ASP.NET tracing feature : Include the following line in the element of the web.config file. trace enabled=”true” pageOutput=”true”