Tuesday, March 17, 2009

How-to see descriptive Error messages in MOSS

How many times you have cursed Microsoft for that single line error message that always appear for so many different reasons but always says "An unexpected error has occured." :-(

To have a more detailed messages in MOSS while you perform your development tasks, you may want to enable debugging in the web.config file for the SharePoint web application. Please note here that this is not recommended to be done in a Production environment.

Edit your web.config file as shown in red below:

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

And:

<customErrors mode="Off" />

And get rid of any bugs from your application quickly.

No comments: