Sunday, July 18, 2010

Viewing actual error in custom code

When there is an error in custom code, SharePoint logs the error and user is presented the generic error. Changing the following web.config changes for the web application allows you to view the errors in the browser

<SharePoint>
 <safeMode CallStack="true" />
</SharePoint>


<system.web>
 <customErrors mode="Off" />
 <compilation batch="false" debug="false">
</system.web>

No comments:

Post a Comment