Friday, October 24, 2008

Showing the StackTrace in SharePoint

Instead of being stuck with the default errors in sharepoint (usually 'unexpected error'), you can force SharePoint to show the StackTrack.

To do so, you must make 2 changes to the web.config file of each site where you wish to enable this.

First of all, set the 'Mode' value of the 'CustomErrors' element to 'Off' (or 'RemoteOnly')

Second, set the 'CallStack' value for the 'SafeMode' element to 'true'

No comments:

Post a Comment