简体   繁体   中英

Maximum request length exceeded iis 7

I appreciate this has been asked numerous times before, but i cannot seem to get this working.

I have the following values in my config file:

  <httpRuntime maxRequestLength="16384" executionTimeout="7200" />

and

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

I am however getting a maximum request length exception thrown.

The content length of my message is :Content-Length: 7785556

Can anyone suggest a setting i may have overlooked?

I had to add:

 <httpRuntime maxRequestLength="16384" executionTimeout="7200" />

To my machine.config.

It depends on Framework version, under 2.0 httpRuntime works. On other Framework versions you should be using requestFiltering section to define this limit.

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