Tuesday, July 27, 2010

CustomErrors setting in SharePoint 2010 for debugging purposes

On a SharePoint 2010 development machine you typically want to see the full stack trace when an error occurs. In SharePoint 2010 you will need to modify 2 web.configs:

  • Underneath “[systemdrive]:\inetpub\wwwroot\wss\virtualdirectories\<port>”
  • In the layouts directory underneath the SharePoint root directory or 14 hive – “[systemdrive]:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS

The settings that you need to change are still the same:

  • Change Debug=”true”
  • CallStack=”true”
  • CustomErrors=”Off”

Happy SharePointing …

No comments: