Web. config configuration of SharePoint

Source: Internet
Author: User

1: callstack, customerrors

The SharePoint error interface usually provides some fuzzy error information, which is not easy for us to locate the error. Therefore, we need to modify web. config to obtain detailed error information.

 

< Customerrors Mode = "On"   />

 

Change

 

< Customerrors Mode = "Off"   />

 

Second:

< Safemode Maxcontrols = "200" Callstack = "False" Directfiledependencies = "10" Totalfiledependencies = "50" Allowpageleveltrace = "False" >

 

Change

< Safemode Maxcontrols = "200" Callstack = "True" Directfiledependencies = "10" Totalfiledependencies = "50" Allowpageleveltrace = "False" >

The detailed error is displayed after modification.

 

2: safecontrol

In Sharepoint, only trusted controls can be used in the system. SharePoint will only load the controls defined by the safecontrol element in the web. config file.

< Safecontrol Assembly = "Microsoft. Sharepoint. Portal, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c" Namespace = "Microsoft. Sharepoint. Portal. webcontrols. Alerts" Typename = "*" Safe = "True"   />

 

3: blod Cache

SharePoint files are stored in the database. If your Web ApplicationProgramLarge files that contain images and multimedia files, such as disk-based Cache, accelerate file reading because the page cache is stored in the file system on the front-end web server, thus reducing database traffic. The specific configuration is as follows:

< Blobcache Location = "C: \ blobcache" Path = "\. (GIF | JPG | PNG | CSS | JS) $" Maxsize = "10" Enabled = "False"   />

4: trust level

We developed SharePoint and put *. DLL files in the bin directory of the Web application, or in GAC. If you put it under the bin, there will be a problem of security trust. We need to set the trust level to full.

< Trust Level = "Wss_minimal" Originurl = ""   />

 

Change

 

< Trust Level = "Full" Originurl = ""   />

 

5: proxys settings

Proxy: If a proxy server is located between the Sharepoint Server Farm and the Internet, if you access an external RSS feed, it cannot be accessed. You need to modify web. config.

< System.net >
< Defaultproxy >
< Proxy Usesystemdefault = "False" Proxyaddress = "Http: // proxy" Bypassonlocal = "False" />
</ Defaultproxy >
</ System.net >

 

One problem is that the proxy server uses anonymous authentication. If not?

< Defaultproxy Usedefaultcredentials = "True" >
< Proxy Usesystemdefault = "False" Proxyaddress = Http: // proxyservername" Bypassonlocal = "True"   />
< Bypasslist >
< Add Address = "[A-Z] + \. domain \. Biz"   />
< Add Address = "[A-Z] + \. domain2 \. Biz"   />
</ Bypasslist >
</ Defaultproxy >

 

The usedefacrecredentials parameter is set to true, and the creden of the logged-on user are passed to the proxy server.

Related Article

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.