How to: turn off SharePoint Custom Errors

When you deploy to SharePoint, you are likely to hit a page that informs you or an error pertaining to your code but which provides very little information about it. If you’d like to get more information about the actual error, you will have to disable the Custom Errors in order to get the full error message. To do that, follow the simple steps below (works in both SP2007 / SP2010).

1. Browse to the folder where your web application resides (something like c:\inetpub\wwwroot\wss\VirtualDirectories\specificWebAppFolder)
2. (it might be a good idea to back up the file before messing with it) Edit the file web.config, search for “CustomErrors” and change the value to “off” in this line: <customErrors mode=”Off” /> (if this is a production environment, you might want to change the value to “RemoteOnly”)
3. Search for “CallStack” and change the value to “true” in this line <SafeMode MaxControls=”200″ CallStack=”true” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”false”>
4. Another thing you might want to do is to enable the PageLevelTrace. In the same line as above, change the AllowPageLevelTrace to “true”.
5. Save the file and maybe to an iisreset for the changes to take effect.

MGR: the Intelogist

About MGR: the Intelogist

SharePoint Server developer, turned Sitefinity developer, turned Angular developer, turned SharePoint Online consultant, turned Unily consultant, turned O365 consultant... Never a dull moment!

2 thoughts on “How to: turn off SharePoint Custom Errors

  1. […] How to: turn off SharePoint Custom Errors | .Randomizzzer – First of all, you will need to turn off the custom errors. If you haven’t already done so, click here to find out how to turn off SharePoint Custom Errors […] […]

  2. […] First of all, you will need to turn off the custom errors. If you haven’t already done so, click here to find out how to turn off SharePoint Custom Errors […]

Leave a Reply

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

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

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