Tuesday, July 17, 2012

Error Type: Server Error in '/' Application. Enabling Application Error Details in SharePoint 2010


Most of us would have encoutered the common error "Unexpected error has occured" many times  in Sharepoint 2010 which does not give any details about how and why the error occurred.

In order to know the error we need to do the follow the steps,

1. Open your webapplication's web.config and modify  CustomErrors="Off"(within System.web) and CallStack="True" which are by default set as "On" and "false" respectively.

Path : C:\inetpub\wwwroot\wss\VirtualDirectories\<<portnumber>> folder\web.config

Modify the file , save and close.

2.  Now go to this location "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\".

Open web.config in LAYOUTS folder and set CustomErrors="Off".

Save and Close the file.

Now we will see the error details in SharePoint 2010.

No comments:

Post a Comment