How to Show Error Details in SharePoint


SharePoint displays very short and user friendly error messages by default. But developers need to know the details of that errors and digging into log files can be very time consuming. In order to display error details and the stack trace of the errors, you need to modify the web.config file. This little modifications help to debug run-time problems and save lots of development time. Please keep in mind that these changes should be made in your development environment, not in your production servers.

Disable Custom Errors

Find:   <customErrors mode=”On” />

Replace with: <customErrors mode=”Off” />

Enable Call Stack Trace

Find:   <SafeMode CallStack=”false” />

Replace with: <SafeMode CallStack=”true” />

Enable Compilation Debugging

Find:   <compilation debug=”false” />

Replace with: <compilation debug=”true” />

Enable ASP.NET Tracing

Insert: <trace enabled=”true” pageOutput=”true“/>

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.