MOSS 2007 Document Library PDF Upload Error-File Size Issue

Problem: I have a MOSS 2007 farm (on Windows 2008 Service Pack 2) that is 5 years old, and i’ve never had problems uploading a PDF document until [Today]. My freaking Document Library wouldn’t let me upload a pdf that is 44 MB in size. The default file size limit for web applications is 50 MB. I changed the limit to 500 MB in Central Administration, but it still wouldn’t upload!

Solution: I found a couple blogs that said this is a MS bug for MOSS 2007 farms on Windows 2008, and that the solution is to add this code below to the web.config file. I did it and it worked for me.

  • Remote into WFE
  • Open IIS 7
  • Right-click on site in question (Extranet39979 in my case), click ‘Explore’
  • This will open up a window at this location: inetpub\wwwroot\wss\VirtualDirectories\Extranet39979 and you should see your web.configuration file
  •  Make copy of web.configuration file
  • Open web.configuration file in Notepad and paste this code at the end of the file after the <system.net> tags:
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxAllowedContentLength="52428800"/>
    </requestFiltering>
  </security>
</system.webServer>

 

<system.net>
    <defaultProxy>
      <proxy autoDetect="true" />
    </defaultProxy>
  </system.net>

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="52428800"/>
      </requestFiltering>
    </security>
  </system.webServer>

    <location path="_vti_bin/ReportServer/ReportServiceAuthentication.asmx">
      <system.web>
        <authorization>
          <allow users="*" />
        </authorization>
      </system.web>
    </location>
<spSolutions><dataZoom><providers /></dataZoom></spSolutions>
</configuration>

Leave a Reply