I need to be able to upload large files to an ASP.NET application. I knew that IIS 7.5, by default, enforces a 30MB request limit. And I know that IIS throws a 404 error when you try to upload a file larger than the upload limit.

I have tried both to set a 500MB upload limit in my application's web.config and double-checked IIS console's Request Filter for the 500MB upload limit, successfully.

I still get a 404 error with a file large 23.2MB

I'm writing on SF because I believe it's not an application problem but a server configuration problem. What more can I check?


try the following in the web.config of your site. Look a the docs for what units the values are in.

in <system.web>

<httpRuntime maxRequestLength="2097151" executionTimeout="10000"/>

MSDN docs

in <system.webServer>

    <requestLimits maxAllowedContentLength="1073741824"/>

MSDN docs

  • Oh, I tried only the second part (when I referenced the application's web.config) – usr-local-ΕΨΗΕΛΩΝ Feb 21 '15 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.