Sunday, December 4, 2011

Sharepoint Debugging (To find out the exact error instead of sharepoint throwing a plain yellow page with "Unexpected Error" message)

Here are the steps to follow and trace the exact error from any share point web application.


These changes are recommended only in development environment.

Open the sharepoint site web.config file

Find out the tag “<SafeMode” set the callstack attribute value to true as shown in bold style, by default it is False.

<SafeMode MaxControls="200" CallStack="True" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

Find out the tag  “<customErrors” set the mode attribute value to Off.

  <customErrors mode="Off" />


Find out the tag   <compilation” set the debug attribute value to true.

 <compilation batch="false" debug="true">

Finally reset Internet Information Server (IIS)
 

No comments:

Post a Comment