Allow SharePoint sites to output detailed error information

Source: Internet
Author: User
Recently, I have been studying SharePoint development, and it is inevitable that errors may occur frequently. For example:


Obviously, this error prompt is not helpful in solving the problem except for making people crazy, and has made ASP. net friends should have thought of modifying the website's web. config file to solve website-related problems. This method also applies to SharePoint sites. The procedure is as follows:
(1) Find the Web corresponding to the SharePoint website. config file, which is located in the following directory (X is the system disk drive letter, NNNN is the website port number): X: \ Inetpub \ wwwroot \ WSS \ virtualdirectories \ NNNN \
(2) Search for the following content in the web. config file: < SharePoint >
< Safemode Maxcontrols = "200" Callstack = "False" Directfiledependencies = "10" Totalfiledependencies = "50" Allowpageleveltrace = "False" >
< Pageparserpaths >
</ Pageparserpaths >
</ Safemode >

ThenCallstackAndAllowpageleveltraceIs set to"True".
(3) Search for the following content in the web. config file:<CustomerrorsMode= "On" />

Change it:<CustomerrorsMode= "Off" />

(4) save Web. config.

After this is done, the error message is like this. Is it too pleasing to the eye?

From: http://blog.csdn.net/jackjoy/archive/2007/07/31/1719012.aspx

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.