Display the actual error message when an error occurs in SharePoint 2010 when you open a webpage

Source: Internet
Author: User

Each time you open the error page, the SharePoint error displays the friendly message "An unexpected error has occurred", and is friendly to you basically can't understand what is wrong, how to do?

Modify the Web. config file configuration so that you can display more detailed information:

1. Change the mode of <customerrors mode= "on"/> to "Off"
2, will <safemode ... Callstack= "false" ... Allowpageleveltrace= "false" > CallStack and Allowpageleveltrace properties set to "true"

Specific modification Location:
1. Modify the contents of the Web. config file under the "C:\Program Files\Common files\microsoft Shared\Web Server Extensions\14\template\layouts" path:
<customerrors mode= "Off"/>


2. Modify the contents of the Web. config file under the "C:\inetpub\wwwroot\wss\VirtualDirectories\80" path:
Callstack= "true"
<customerrors mode= "Off"/>

Display the actual error message when an error occurs in SharePoint 2010 when you open a webpage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.