Saturday, March 8, 2008

SharePoint Web.config Debug Settings

I always seem to forget the exact changes needed in your web.config to get some REAL error information in your browser when debugging SharePoint (other than setting customErrors = false). 

<configuration>
    <SharePoint>
        <SafeMode CallStack="true" />
    </SharePoint> 
    <system.web>
        <customErrors mode="Off" />
        <compilation debug="true" />
    </system.web>
</configuration>



There’s also this posting which offers a variety of other approaches, but I’m yet to have much success with many of them (although I admittedly haven't spent much time trying).

No comments:

Post a Comment