Troubleshooting – Web.config file has incorrect settings for the requestFiltering element

Ran into this the other day, when upgrading (in Place) a SharePoint 2010 environment. The following was logged in Central admin and the screenshots below were the fix (you could also modify your web.config directly).

 

Title

Web.config file has incorrect settings for the requestFiltering element.

Severity

1 – Error

Category

Configuration

Explanation

The requestFiltering element in web.config must have the allowDoubleEncoding attribute set to true in order to support file names with the + character in them. Also, it must have a child requestLimits element with the maxAllowedContentLength attribute set to 2147483647 to avoid interfering with file uploads.

Remedy

Ensure the requestFiltering element exists in web.config, that its allowDoubleEncoding attribute is set to true, that it has a child requestLimits element, and that its maxAllowedContentLength is set to 2147483647. For more information about this rule, see “http://go.microsoft.com/fwlink/?LinkID=163442“.

Failing Servers

ITGCA1VMG08

Failing Services

SPWebService

Rule Settings

View

 

Get the IIS Administration Pack: http://www.iis.net/download/AdministrationPack

 

   

Figure 1 : after having the IIS Administration pack installed, go into the Configuration Editor

   

Figure 2 – Expand out System.WebServer / Security and select RequestFiltering

   

Figure 3 – Change the value to 2147483647 or whatever you deem appropriate