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 | Permalink | Comments (1) »