Monday, September 2, 2013

Server Error in ‘/’ Application. Runtime Error in SharePoint 2010

Whenever you will get this runtime error (Server Error in ‘/’ Application), you need do following changes in web.config file

1. Web Application web.config

Open C:\inetpub\wwwroot\wss\virtualdirectories\<port>” and modify the web.config file

a. In customErrors tag set mode="Off" to "On
b. In SafeMode tag set CallStack="true" to false
c. In Compilation tag Debug="false" to true

2.SharePoint web.config (Need to modify if above changes won't work)
Open SharePoint (2010) root directory or 14 hive – C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS and 
modify the web.config file

a. In customErrors tag set mode="Off" to "On
b. In SafeMode tag set CallStack="true" to false
c. In Compilation tag Debug="false" to true