Windows Server 2008 WFE will not allow large file uploads

I had a client a couple weeks ago who upgraded from SPS 2003 to MOSS 2007 using the database attach method. This means the MOSS farm was built on new hardware which we chose Windows Server 2008 for. This was a very challenging upgrade for several reasons but primarly because the 2003 site database was in bad shape. Once we worked through the issues and got things up we noticed strange behavior. When uploading a large file (anything larger than 28 MB) the browser would instantly come back with a 404 error. So our first thought was check the three normal settings for large uploads.

  • Central Admin > Application Management > General web application settings. By default this is 50 MB. You can increase to 2 GB.
  • Then you can go into IIS. Find your web application and go to properties. Then change the IIS timeout from 120 seconds to a much larger setting.
  • Upload.aspx is an application page. Application pages have their own web.config which controls their timeout. The default for these pages is 360 seconds. You need to increase this.

All of these settings apply whether you are using w2k3 or w2k8 and are covered in this kb http://support.microsoft.com/kb/925083

We made all of those changes and no change in behavior. And besides we didn’t have a timeout issue because on a 27 MB file is processed for a few seconds and then uploaded no problem. On a 30 MB or greater file it failed instantly.

Todd Klindt to the rescue he pointed me at this KB944981 – You cannot upload files that are larger than 28 MB on a Windows Server 2008-based computer that is running Windows SharePoint Services 3.0

So I gave it a try and it actually made things worse. What the heck? Well then I reread it. They tell you to make a change to the web.config and say just put the change in the <configuration> section. WRONG! Well kind of. You need to make the change in the <configuration> section but it has to be after the </configSections> tag. So I recommend you paste their change between </configSections> and the <SharePoint> tag.

Now everything works great. Do note their change only allows you to upload files with a size of 50 MB. If you want larger you will need to increase the maxAllowedContentLength=.

If you are going to be playing with Windows Server 2008 and SharePoint I recommend you go poke around the SharePoint and w2k8 resource center at http://technet.microsoft.com/en-us/office/sharepointserver/bb735844.aspx. Thanks to Emily Schroeder for the tweet on that page which she runs. J

Even better yet Todd and I have some fun new stuff coming on Windows Server 2008 and 64 bit before the end of the year.

Shane – SharePoint Consulting



31 Comments so far

  1.   Mo Omar on December 19th, 2008          Reply

    Nice post. Thanks for the tip Shane!

    -Mo

  2.   Uzexoknl on July 14th, 2009          Reply

    uExAdD

  3.   Ali Khan on October 22nd, 2009          Reply

    Thanks Shane. It was great meeting you at the SPC 2009.

  4.   JBourg on October 27th, 2009          Reply

    Thhanks Shane!!! What a life saver. This works great.

  5.   christian louboutin on October 28th, 2009          Reply

    I purchased a pair of christian louboutin shoes to attend a friend party In the http://www.christianlouboutinshoes88.com. The red high heels are very sexy. I recommend everyone go here to buy

  6.   scott on November 3rd, 2009          Reply

    You guys saved me again, thanks!!!

    Technet needs to get that fixed!

  7.   Sarves Shah on November 25th, 2009          Reply

    thanks for information – this helped with our issue with file upload on SharePoint running on Win 2008.

  8.   Buy Ambien on February 12th, 2010          Reply

    lagos mineral exposition achieving brainstorm sumatriptan biochemical reveres streamline raptokas slowly
    ambisoltersos makalavertonicos

  9.   Matthew on May 21st, 2010          Reply

    Windows Server 2008 WFE will not allow large file uploads

    I had a client a couple weeks ago who upgraded from SPS 2003 to MOSS 2007 using the database attach method. This means the MOSS farm was built on new hardware which we chose Windows Server 2008 for. This was a very challenging upgrade for several reasons but primarly because the 2003 site database was in bad shape. Once we worked through the issues and got things up we noticed strange behavior. When uploading a large file (anything larger than 28 MB) the browser would instantly come back with a 404 error. So our first thought was check the three normal settings for large uploads.

  10.   Volker on June 29th, 2010          Reply

    Hi,
    ich bin gerade auf einer kleinen Reise quer durchs web. Nun bin ich also auf dieser tollen Homepage gelandet und muss sagen: Der Besuch hat sich gelohnt! Ich werde deine Seite auf jeden Fall wieder mal besuchen! Wenn du Lust hast, kannst du ja auch mal auf meiner Homepage vorbei schauen. Ich würde mich sehr freuen. Nun wünsche ich eine tolle Zeit!

  11.   online high school on November 22nd, 2010          Reply

    I’m the same way, I do my best to remain neutral. It’s hard, if you communicate with the person the other person dislikes, then you fall out of favor with them! I simple can’t dislike a person, just because someone else does, I just can’t.

  12.   Cleveland Web Designers on November 30th, 2010          Reply

    Great thought

  13.   WIT on December 10th, 2010          Reply

    WIT offers local web hosting on servers in South Africa, as well as hosting on servers based in the USA. Our hosting solution in the USA is ideal for clients who require additional speed and services to enable international exposure. We are flexible with our hosting packages and will tailor a solution that will suit your needs. We can offer both Microsoft Windows and Linux based hosting solutions and support a variety of infrastructures, including ASP, ASP.NET, MS Access, MySQL and MSSQL.

  14.   cna jobs on February 14th, 2011          Reply

    I have found it interesting that the amount of oil put into the water did not do more damage. Life is so resilient, we need to be careful with it.

  15.   Online CPR Certification on February 24th, 2011          Reply

    Someone post a comment here that he will going to watch the show here..

  16.   CNA Job Description on March 1st, 2011          Reply

    It’s true, I will pay more for this but I will save my money after read your article, Thank you.

  17.   CPR Certification on March 25th, 2011          Reply

    First of all, your site is very useful and nice site. As for the sharing and information sharing really very good on behalf of a nice explanatory .. Well thank studies

  18.   CPR Certification on March 25th, 2011          Reply

    News blogs are great, but often fake news are released and this is a problem for readers. The genuine is questioned in some cases and this is the negative aspect
    of News Blogs.

  19.   Kasara on May 14th, 2011          Reply

    BION I’m impersesd! Cool post!

  20.   average insurance on June 14th, 2011          Reply

    I really like doing new and latest technology testing. An interesting page you’ve got in here indeed. thanks!

  21.   free cna training on June 14th, 2011          Reply

    Wow that is awesome, you are a genious!online roulettepoker siteonline blackjack

  22.   cars for sale on July 1st, 2011          Reply
  23.   Arizona CNA Classes on July 8th, 2011          Reply

    perfect, I found your post helpful and listening to the big designers is always i like .

  24.   Arkansas CNA Classes on July 8th, 2011          Reply

    This law or rule will step back the women. this should be revised and certain changes are necessary in it.

  25.   buy essays online on July 14th, 2011          Reply

    We made all of those changes and no change in behavior. And besides we didn’t have a timeout issue because on a 27 MB file is processed for a few seconds and then uploaded no problem. On a 30 MB or greater file it failed instantly.

  26.   Valentine26Felecia on August 7th, 2011          Reply

    Buildings are not very cheap and not everyone can buy it. But, mortgage loans was invented to aid people in such kind of hard situations.

  27.   beads for pandora bracelets on August 16th, 2011          Reply

    I am happy to have found this blog, and more happy to have long tail explained so well. Thanks.

  28.   tissot watch prices on August 17th, 2011          Reply

    Thanks for posting this informative article This is a really good read for me. Hey this is a great post. I amm going to email this to my buddies. Thanks for posting this informative article I was searching some information.

  29.   cartier love bracelet on August 17th, 2011          Reply

    Thanks for this wonderful post.Admiring the time and effort you put into your blog and detailed information you offer.

  30.   Morgan26Alana on September 18th, 2011          Reply

    Have no enough money to buy a building? Do not worry, just because it’s available to receive the business loans to solve all the problems. So get a student loan to buy everything you want.

  31.   custom written dissertation on March 27th, 2013          Reply

    A good way to get to know more about these stuff. thanks.

Leave a Reply