10Dec/090
maxAllowedContentLength in IIS 7
After migrating some of my webapps from IIS 6 to IIS 7, I noticed that I was no longer able to upload files larger than 30 MB. It turns out there is a new setting in IIS 7 which by default restricts maximum allowed content length for a request to 30 MB.
The typical error message you will see in your browser is “The connection to the server was reset while the page was loading.” or something similar.
To allow uploading of larger files than 30 MB, you can add this to your web.config file.
<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1000000" /> </requestFiltering> </security> </system.webServer>



