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”

Comments

Popular posts from this blog

WCF WSDL location address Issue resolved when hosted over HTTPS with basicHTTPBinding

Yellow Background issue in Word to PDF conversion

Gmail tricks - create unlimited siblings of your Gmail address