Skip to content

Show More Error Information In the Browser to Troubleshoot for SharePoint 2007 or 2010

by on August 9, 2011

Tired of running to the error logs every two seconds? Here is a quick way to set up the web.config to show error logs directly in the browser.

NOTE: remember to switch back after you have solved the issue as error messages can reveal secure information about your server to hackers.

  1. Go to the web.config file of the site collection you are working on. It should be at C:\inetpub\wwroot\wss\Virtual Directories\YourSiteCollectionFolder\web.config
  2. Duplicate the web.config and save it as web.config.orginal
  3. Open the current web.config file in an editor (Visual Studio, Notepad)
  4. Find the SafeMode node and change the CallStack attribute to “true”
  5. Find the CustomErrors node and change the Mode attribute to Off
  6. Save the file
  7. Refresh the page with the error in the browser – you should now see the full .Net error message – this will make error testing and troubleshooting a bit faster
  8. When you are done, save this web.config file as web.config.troubleshooting and restore the original web.config (or you can make a third version and keep you web.config.original for a rainy day)

NOTE: Some errors are SharePoint specific and will only appear in the error SharePoint 2007 error logs at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS – find SharePoint 2010 error logs at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

Leave a Comment

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: