I encountered this while uploading a large file to an ASP.NET handler, seems like there’s a default limit of ~30MB for a single request in IIS7 on Windows 7.
After some researching, I found that there’s a setting inside
<system.webServer> other than the regular limit in
<httpRuntime maxRequestLength=".."/> (god and MS know why the duplication).
To fix that do one of the following:
Option 1: Add to your Web.config the following code, under the appropriate nodes:
1 2 3 4 5 6 7
Option 2: Go to IIS 7 control panel, under your website look for Request Filtering and then Edit features (on the right), then set Maximum allowed content length to your desired limit. This will add to your Web.config the lines from option 1.
Actually I had this while playing with FancyUpload (great thing!) and got Error #2038 on every request.