Turn Off Custom Errors in Sharepoint


When things go bump in Sharepoint, typically you’ll see a helpful error message displayed, such as;

“An unexpected error occurred….”

Which is less than useless, you can switch this off so that the underlying .NET exception information is displayed instead; to do this;

Edit the web.config for the Sharepoint web application;

Change

<customErrors mode="On" />

to

<customErrors mode="Off" />

Change

<SharePoint>
    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies.......... />

to

<SharePoint>
    <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies.......... />

Published by

Phil Harding

SharePoint Consultant, Developer, Father, Husband and Climber.

One thought on “Turn Off Custom Errors in Sharepoint

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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