Don's profileMy SharePoint Life and o...PhotosBlogListsMore Tools Help

Blog


    January 17

    SharePoint Upload Size Limit on Server 2008 - IIS 7

     
    MOSS Upload Size and TImeout Issue
     
    A funny thing happens when you go to central admin and change the web app settings to a higher setting while running MOSS on Server 2008. 
     
    It would appear you get an error whenever any file over 28MB's is uploaded even if you changed this setting in the web app settings all the way up to 2GB's.  The security built into 2008 is at fault here.  When you make the changes in the web app settings they do not get transfered to the web.config automatically.  So you must manully update the web.config for all web apps needing this change and update the web.config in the 12 hive as well.
     
    In the 12 hive we need this change.  This is the web.config file in the templates gallery.
     
     
     
    Change the web config for all web apps that need the change
     
     This will stop the time out problem.
     
    Now for the file size:
     
    On a Windows Server 2008 computer that has IIS 7.0-only installations, you add the maxAllowedContentLength value. When you are running Windows SharePoint Services on a Windows Server 2008-based computer that has IIS 7.0, you find that you cannot upload files that are larger than 28 MB even though you have configured the large file upload settings. Usually, the error that users see is "The page cannot be displayed." In some circumstances, users may also see an "HTTP 404" error.

    To work around this problem, set in the Web.config file for the Web application to have following settings under the <configuration> section:
    • Use Notepad to open the Web application Web.config file. By default, this file is in the following folder:
      Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
    • Add the following settings under the <configuration> section of the Web.config file:
      <system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="52428800"/></requestFiltering></security></system.webServer>
    Note maxAllowedContentLength="52428800" in bytes has to match the size of file that you are trying to upload. Also, when you set the number, increase it slightly beyond the maximum file upload size that you have configured in SharePoint. If the number is equal to or less, users will not receive the error message that they are exceeding the size limit if they try to upload a file size larger than that specified by the administrator.
     
     Place the above code at the botom just before the close out config section like this:
     
     
     
     

    Comments (9)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.
    Don has turned off comments on this page.
    No namewrote:
    http://www.adapterlist.com/hp/nc6120.htm hp nc6120 battery
    http://www.adapterlist.com/dell/inspiron-1100-series.htm dell inspiron 1100 series battery
    http://www.adapterlist.com/dell/inspiron-1150.htm dell inspiron 1150 battery
    http://www.adapterlist.com/dell/inspiron-5150.htm dell inspiron 5150 battery
    http://www.adapterlist.com/dell/inspiron-5160.htm dell inspiron 5160 battery
    http://www.adapterlist.com/dell/inspiron-5100.htm dell inspiron 5100 battery
    http://www.adapterlist.com/dell/latitude-131l.htm dell latitude 131l battery
    http://www.adapterlist.com/dell/vostro-1000.htm dell vostro 1000 battery
    http://www.adapterlist.com/dell/gd761.htm dell gd761 battery
    http://www.adapterlist.com/dell/nt379.htm dell nt379 battery
    http://www.adapterlist.com/dell/latitude-d531.htm dell latitude d531 battery
    http://www.adapterlist.com/dell/precision-m65.htm dell precision m65 battery
    http://www.adapterlist.com/dell/vostro-1700.htm dell vostro 1700 battery
    http://www.adapterlist.com/gateway/8msb.htm gateway 8msb battery
    http://www.adapterlist.com/hp/pb992a.htm hp pb992a battery
    http://www.adapterlist.com/hp/dv2100.htm hp dv2100 battery
    http://www.adapterlist.com/hp/dv2200.htm hp dv2200 battery
    http://www.adapterlist.com/hp/hstnn-c29c.htm hp hstnn-c29c battery
    http://www.adapterlist.com/hp/nc8000.htm hp nc8000 battery
    http://www.adapterlist.com/dell/inspiron-b120.htm dell inspiron b120 battery
    http://www.adapterlist.com/dell/inspiron-b130.htm dell inspiron b130 battery
    http://www.adapterlist.com/gateway/12msbg.htm gateway 12msbg battery
    http://www.adapterlist.com/hp/7400.htm hp 7400 battery
    http://www.adapterlist.com/dell/inspiron-b120.htm dell inspiron b120 battery
    http://www.adapterlist.com/toshiba/pa3356u.htm toshiba pa3356u battery
    http://www.adapterlist.com/hp/2510p.htm hp 2510p battery
    http://www.adapterlist.com/hp/f3172a.htm hp f3172a battery
    http://www.adapterlist.com/dell/inspiron-2200.htm dell inspiron 2200 battery
    http://www.adapterlist.com/gateway/squ-414.htm gateway squ-414 battery
    http://www.adapterlist.com/hp/hstnn-lb33.htm hp hstnn-lb33 battery
    http://www.adapterlist.com/mitac/bp-8089.htm mitac bp-8089 battery
    http://www.adapterlist.com/toshiba/satellite-m55.htm toshiba satellite m55 battery
    http://www.adapterlist.com/toshiba/satellite-m115.htm toshiba satellite m115 battery
    http://www.adapterlist.com/toshiba/qosmio-f25.htm toshiba qosmio f25 battery
    http://www.adapterlist.com/toshiba/satellite-m60.htm toshiba satellite m60 battery
    http://www.adapterlist.com/toshiba/satellite-p200.htm toshiba satellite p200 battery
    http://www.adapterlist.com/toshiba/pa3536u-1brs.htm toshiba pa3536u-1brs battery
    http://www.adapterlist.com/hp/hstnn-db17.htm hp hstnn-db17 battery

    Nov. 26
    Regarding "In the 12 hive we need this change. This is the web.config file in the templates gallery", which specific files do I need to edit? There are about 20 different subdirectories in the 12 hive.

    Thank you,
    Larry
    Sept. 18
    Donwrote:
    No this is an IIS7 issue so it only relates to Server 2008 at this point.
    Sept. 8
    No namewrote:
    Hi, does the same fix apply for MOSS 2k7 running on Server 2003? Thanks.
    Sept. 4
    lwrote:
    Aug. 7
    Ivan Ravewrote:
    It is the best decision of this problem. Very helpful. Thank you, Don!
    July 10
    No namewrote:
    Thanks for the blog entry! After trying every other possible setting in IIS, SharePoint, etc, this was the answer!
    May 28
    Donwrote:
    I added the location in an an image so everyone could see it.
    Mar. 26
    Don, thanks for this tip. I have been banging my head against the wall. And it sounds like the perfect solution for our issue. However, do you have to add the maxAllowedContentLength in a very specific section? Whenever I add it (and tried in various places), I get a 500 - Internal Server Error.
    Feb. 10