简体   繁体   中英

Maximum request length exceeded exception, maxContentLength not working

I know that this problem has a solution in stackoverflow, but it didn't work for me. I will be more specific below:

I had typical Maximum request length exceeded exception:

HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.

That's my changes to web.config, under system.web:

  <httpRuntime maxRequestLength="200000" executionTimeout="300" /> 

and under system.webServer:

  <security> <requestFiltering allowDoubleEscaping="false"> <requestLimits maxAllowedContentLength="200000000" /> </requestFiltering> </security> 

I also made this changes in applicationHost. On one machine these worked like charm. That was windows 7 + iis 7.5. But on another with windows server 2008 + iis 7.0 I cannot get upload of 19 MB to work. I really dont know what to do now. Please help anyone.

OK. That machine was client's machine. Apparently he changed something in IIS manager regarding one of the site's subfolders and IIS manager created web.config in subfolder that was overriding my setting in parent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM