1

I've got an ASP.NET website that was running on IIS 6 and worked great. We allowed our customers to upload large files (50MB+) without any issues. We recently moved (my company) and our websites have been moved off-site as well (before they were on a server in our own building) and we had to switch from IIS 6 to IIS 7. Since making the move, our website won't allow our customers to transfer large files. I have tested smaller files (< 10MB) and they upload fine, but when I attempt anything over 10MB, I get the 404 Error:

404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

We have the following in our web.config already:

<httpRuntime maxRequestLength="1321600" />

Is there a setting in IIS 7 that I am missing?

Robert
  • 1,696
  • 3
  • 36
  • 70
  • possible duplicate of [Increasing Max Upload File Size on IIS7/Win7 Pro](http://stackoverflow.com/questions/2759461/increasing-max-upload-file-size-on-iis7-win7-pro) – David Hedlund Apr 23 '12 at 14:10

2 Answers2

8

You should be able to change this setting from web.config:

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

More info here: http://support.microsoft.com/kb/942074/

bobek
  • 8,003
  • 8
  • 39
  • 75
0

The upload limit is stored in your machine.config.

You can override this in your web.config like so:

<system.web>
        <httpRuntime executionTimeout="110" maxRequestLength="20000" />
</system.web>

You can find more info about this in this MSDN document.

Jamie Dixon
  • 53,019
  • 19
  • 125
  • 162