Friday, 2 August 2013

How to show full error debug sharepoint 2010

How to show full error for debug SharePoint 2010

By default, SharePoint will only display a basic message to users when an error occurs. The message is virtually useless when trying to troubleshoot an issue, so by enabling more descriptive errors to display, including the stack trace which should help you find the cause of the error.

You can enable show full debug sharepoint 2010 in web.config on your web application .

How to show full error SharePoint 2010.

1. Go to web.config on your web application show error. C:\inetpub\wwwroot\wss\VirtualDirectories\your web application
Note : Please backup web.config before change new configure.
2. Open web.config in notepad .
3.
Enable Custom Errors: Set the customErrors mode to “Off”
Find:
<system.web> …
<customErrors mode=”On” />
Change To:
<system.web> …
<customErrors mode=”Off” />

Enable the Call Stack Trace: Set the CallStack value of the SafeMode element to “true”
Find:
<SharePoint>
<SafeMode … CallStack=”false” … >
</SharePoint>
Change To:
<SharePoint>
<SafeMode … CallStack=”true” … >
</SharePoint>

4. Save web.config

Refresh Page SharePoint again it show full error .

No comments:

Post a Comment