April 17, 2008

How to show a detailed error instead of SharePoint’s default error page

I may be the only one annoyed by generic error pages that give no meaning to what the error was, so I thought I should post this in my blog.
Basically if you go into your Web.Config within the WWWroot folder (or wherever your application's Web.Config file is) and near the top where you see:
<SafeMode MaxControls="200" CallStack="false"

change it to…

<SafeMode MaxControls="200" CallStack="true"

You will also need to set custom errors to 'Off' .

<customErrors mode="Off"/>

No comments:

Post a Comment