by Andreas

Sharepoint 2010 – how to show error details when debugging

Showing actual error details with the stacktrace is usually a quick change in web.config for any ASP.NET web application. For Sharepoint 2010 a few more steps are required, as there are several web.config files spread around.

In my case, the web.config files to change were:

Set <customErrors mode=”On”> to Off
Set <SafeMode .. CallStack=”False”> to True
Set <Compilation batch=”False” to True and <Compilation Debug=”False” to True

C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATELAYOUTS
Set <customErrors mode=”On”> to Off
Ensure <compilation batch=”   ”> is Off

C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14CONFIG
Set <customErrors mode=”On”> to Off

  • Shah

    Saved a lot of frustration , Thanks

  • Scott

    The line Ensure <compilation batch=” ”> is Off

    Should be: <compilation batch=” ”> is false