Tuesday, June 16, 2009

Vocalizing SharePoint errors

Just like any one of us, SharePoint also has the need to vocalize its complaints, requests and dreams… and, of course, errors.
By default, when an error occurrs in Sharepoint, we are presented with this pretty picture:
 

 
Not very vocal.
 
To let SharePoint share the real reason behind the error with us, we need to edit the web.config of the web application twice:
1. CallStack=”true”
2. customErrors mode=”Off”
  
After an IIS reset and a refresh of the error page, here is the result:
 

 
Much better, isn’t it? :)
   
Posted by Madalina at 16:17:59
Comments

One Response to “Vocalizing SharePoint errors”

  1. Shahid says:

    Hi,
    I have just started working on MOSS 2007. I developed a master page and got some problem but I was wondering that how to identify the error. This post helped me in identifying the error.
    Thanks dear for sharing this post.

Leave a Reply