Share via


SharePoint 2007/MOSS 2007: Enable Stack trace for better logging information

SharePoint (WSS 3.0/MOSS 2007) errors sometimes are not descriptive enough or through the generic error message "Unexpected Error occurred". It doesn't provide more information than this and it does not even log any thing to LOGS or event log or anywhere. These type of errors could be caused by missing contentplaceholders in your custom master page or any other reason.

To get better information than the "unexpected error" you can turn on stack trace in the web.config of the corresponding web application.

You need to take the following steps:

change false to true as shown below:

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

turn off custom errors

<

customErrors mode="Off" />

Hope this helps anybody trying to debug SharePoint errors.

Cheers!!
SOURAV
ME_Mag_thumb1

Comments

  • Anonymous
    July 31, 2011
    Very useful sourav, keep it up :-). Got it wen i needed it exactly