Debug your SharePoint site

I know this is nothing new and most of us knew it already, but I might just post in my blog for my own references. When you open SharePoint page, sometimes you get annoying error “Unexpected error occurred” and there is no further explanation to it.

By enable debugging in your site web.config file, you could see the trace log and will be more helpful when you googling.

Steps to modify your web.config file:

  • Go to your web.config file normally located at C:\inetpub\wwwroot\wss\VirtualDirectories\<port number>
  • Backup your current web.config file
  • Open web.config file with notepad
  • Update attributes like below:
<configuration>
  <SharePoint>
    <SafeMode CallStack="true" />
  </SharePoint>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" />
  </system.web>
</configuration>
Advertisements

Tagged: , , ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: