Answered Sharepoint 2010 asking for element that does not exsist.

  • Thursday, July 08, 2010 8:41 AM
     
     

    Hi,

     

    I just did an upgrade of MOSS 2007 to SP 2010. After some modifications I got the site running.
    However I get an error in the health analyzer and Event viewer that can't be solved becase the requested element does not exsist.

    I can't find any reference for allowDoubleEncoding. What I found is allowDoubleEscaping and that I know is for allowing more characters.

    The event:

    Log Name:      Application
    Source:        Microsoft-SharePoint Products-SharePoint Foundation
    Date:          08-07-2010 10:20:16
    Event ID:      2137
    Task Category: Health
    Level:         Error
    Keywords:     
    User:          Domain\user
    Computer:      servername.domain
    Description:
    The SharePoint Health Analyzer detected an error.  Web.config file has incorrect settings for the requestFiltering element.
    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.
    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".

    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
        <EventID>2137</EventID>
        <Version>14</Version>
        <Level>2</Level>
        <Task>8</Task>
        <Opcode>0</Opcode>
        <Keywords>0x4000000000000000</Keywords>
        <TimeCreated SystemTime="2010-07-08T08:20:16.785786900Z" />
        <EventRecordID>4855</EventRecordID>
        <Correlation ActivityID="{6BF212A7-E878-47FF-BC68-CCC50456CA67}" />
        <Execution ProcessID="4072" ThreadID="3120" />
        <Channel>Application</Channel>
        <Computer>servername</Computer>
        <Security UserID="S-1-5-21-2096213808-1853880703-2003740630-28584" />
      </System>
      <EventData>
        <Data Name="string0">Web.config file has incorrect settings for the requestFiltering element.
    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.
    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".
    </Data>
      </EventData>
    </Event>

     

    Is this a bug in SP 2010?

     

    /Joakim

    Stratiteq Sweden

Answers

All Replies

  • Friday, July 09, 2010 12:45 PM
     
     Answered
  • Friday, July 09, 2010 1:48 PM
     
     Answered

    Seems to be working with allowDoubleEscaping and renaming the 12 directory.

     

    /Joakim

  • Thursday, August 25, 2011 4:06 PM
     
     

    Joakim

    You renamed the 12 directory you say? I'm having a very similar issue and followed the same steps in "blog.brainlitter" article; however, I'm still getting the "requestLimits/allowDoubleEscaping" error and wondering what next step I missed. Two questions...

    1. Renaming the previous "12" directory didn't break any of your SharePoint 2010 functionality? That and what did you rename it to?
    2. How were you able to figure out which "Site" in IIS Manager to adjust the requestLimits/allowDoubleEscaping parameters to? I went with the Default Web Site, but I noticed on the screenshots of the above mentioned blog, he wasn't adjusting the parameters there... nothing i'm seeing in Event Viewer seems to pertain to a particular site on the server...
    Looking forward to your insight into your solution--thanks!