7

I wanted to download some backups (about 4..5Gb in size) via HTTP and was surprised that IIS7 didn't allowed me to do so. The attempt was seemingly blocked - got a 404 page.

Where should I go in the IIS Management console to allow such downloads?

kagali-san
  • 1,991
  • 5
  • 17
  • 20

1 Answers1

7

Configure the maxRequestEntityAllowed property in the asp limits sections of the web configuration:

http://www.iis.net/configreference/system.webserver/asp/limits

If you have the Request Filtering feature installed and enabled, you should also set the "Maximum allows content length" value in IIS Manager -> Features -> Request Filtering -> Edit Feature settings

Mathias R. Jessen
  • 25,161
  • 4
  • 63
  • 95
  • 3
    "Maximum allows content length" is 4294967295 bytes (exactly 4 Gb) on that system. Same for maxRequestEntityAllowed. (Request? not Response? how it should work?) – kagali-san Dec 16 '12 at 13:55
  • 3
    If you set the limits to the maximum values, IIS will interpret them as "unlimited", at least that's how it worked in the IIS6 metabase. Please be aware that IE, prior to version 8 has Content-Length limits of 4GB (IE7) and 2GB (IE6) – Mathias R. Jessen Dec 16 '12 at 14:40
  • 1
    @MathiasRJessen can you find me a direct proof of the "unlimited" claim? After short googling, I found some results on this value becoming "unlimited" in other settings, but found no clear results for the following query: ` "Maximum allows content length"|maxallowedcontentlength 4294967295 unlimited ` – kagali-san Dec 16 '12 at 21:32
  • 2
    http://msdn.microsoft.com/en-us/library/ms524953%28v=vs.90%29.aspx – Mathias R. Jessen Dec 16 '12 at 22:20
  • 1
    Is installing ASP.NET feature required just to serve large files? – Slava Jan 13 '15 at 11:55