Everything SharePoint/Silverlight

My continuous learning of SharePoint, Silverlight, Office, VSTO, C#…

Turn off SharePoint Custom Error Messages

Posted by Steve Pietrek on July 28, 2007

Below is a list of steps to turn off SharePoint custom error messages so you can see the “true” ASP.NET error message along with the callstack/stack trace. I would recommend only making the following changes in a development environment – not production.

  1. Navigate to the site directory.
  2. Backup web.config.
  3. Open web.config.
  4. Switch Custom Errors off. Search for “customErrors” and set the value to “Off” instead of “On”. You can also set the value to “RemoteOnly” to troubleshoot a production issue.
  5. Enable CallStack. Search for “CallStack” and set the value to “true” instead of “false”.
  6. Save web.config.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>