4

I have a website running on IIS7.5 on a Windows 2008 R2 server. I'm attempting to download a file from the site that is 3GB. But the download just stops at 2GB. No error in the log.

What I have done:

Set maxRequestEntityAllowed to 10000000 for the site.
Set maxRequestEntityAllowed to 10000000 for IIS.

Any ideas?

NitroxDM
  • 601

2 Answers2

3

I am not entirely sure what maxRequestEntityAllowed does, but, I know maxAllowedContentLength should work, just make sure you add it to the correct place inside your web.config file.

As you said you do not have an existing web.config file create one with the following:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.web>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength=”9999999999″ />
            </requestFiltering>
        </security>
    </system.web>
</configuration>
William Hilsum
  • 116,736
0

I tried all these things plus the asp limits thing - you have to have the following in a web.config file in the root of the website:

<configuration>
    <system.webServer>
       <staticContent>
           <mimeMap fileExtension=".ad3" mimeType="application/octet-stream" />
           <mimeMap fileExtension=".torrent" mimeType="application/octet-stream" />
           <mimeMap fileExtension=".*" mimeType="application/octet-stream" />
       </staticContent>
   </system.webServer>

That's a day and night fix for me...