Administrator Guide

Getting Full Errors

By default, SharePoint will only display a basic message to users when an error occurs. The message is virtually useless when trying to troubleshoot an issue, so by enabling more descriptive errors to display, including the stack trace which should help you find the cause of the error.

You should not make changes to the web.config file in a production environment, or while in production. Backup your entire SharePoint environment, including all databases prior to commencing any major troubleshooting.

You should attempt to replicate and resolve the problem in a non-production environment, and apply the necessary changes to the live environment when it is not in production. In many cases, the web.config will not need to be modified in the live environment as the cause of an error will be known after troubleshooting in a non-production environment.

http://dotnetfollower.com/wordpress/2011/12/sharepoint-how-to-make-error-messages-more-detailed/

Send the results to support@lookout-software.com.

Enable display of error details and stack trace when an error occurs

Replace the following error messages with a more meaningful description of the cause of the error by disabling custom errors and enabling the track trace to be displayed as well.

An unexpected error has occurred..or….An error occurred during the processing of…

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 to display errors.

Enable Custom Errors: Set the custom Errors mode to “Off”

Find:

<system.web> ...

<customErrors mode="On" />

Change To:

<system.web> ...

<customErrors mode="Off" />

Enable the Call Stack Trace: Set the CallStack value of the SafeMode element to “true”

Find:

<SharePoint>

<SafeMode ... CallStack="false" ... >

</SharePoint>

Change To:

<SharePoint>

<SafeMode ... CallStack="true" ... >

</SharePoint>

Enable Debugging Mode: Set batch and debug to “true”

Find:

<compilation batch="false" debug="false">

Change To:

<compilation batch="true" debug="true">

Was this helpful?