web.config Debug settings for development

When developing in SharePoint, it is always a good idea to make a few changes to your web.config so that you can actually get some useful error messages when things do not go as planned.

To do so, locate the web.config for the web application you are working on (for example: C:\Inetpub\wwwroot\wss\VirtualDirectories\site.com80\web.config) and make the following changes:

  1. Locate CallStack="false" and set it to true: CallStack="true"
  2. Locate customErrors mode="On" and set that to Off: customErrors mode="Off"
  3. Locate compilation batch="false" debug="false", and then set those both to true: compilation batch="true" debug="true"

And that should do the trick to give you some useful debug messages in SharePoint!


About Geoff Varosky
Geoff Varosky is a Senior Architect for Insight, based out of Watertown, MA. He has been architecting and developing web based applications his entire career, and has been working with SharePoint for the past 15 years. Geoff is an active member of the SharePoint community, Co-Founder and Co-Organizer of the Boston Area SharePoint Users Group, co-founder for the Boston Office 365 Users Group, co-organizer for SharePoint Saturday Boston and speaks regularly at SharePoint events and user groups.

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: