Degree Blogg
27Oct/112

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:

C:\inetpub\wwwroot\wss\VirtualDirectories\[your_web_app]
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 Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
Set <customErrors mode=”On”> to Off
Ensure <compilation batch=”   ”> is Off

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG
Set <customErrors mode=”On”> to Off

Posted by Andreas

Comments (2) Trackbacks (0)
  1. Saved a lot of frustration , Thanks

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

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


Leave a comment

(required)

* Copy this password:

* Type or paste password here:

8,550 Spam Comments Blocked so far by Spam Free Wordpress

No trackbacks yet.