如何超过最大iis发布请求限制?

时间:2014-06-22 14:12:54

标签: asp.net http iis limit

我有一个asp网络应用程序,以及人们用来通过HTTP POST发送大块日期的服务。 bu数据丰富许多兆字节拒绝请求并且不返回任何内容。

我试图使用这个,但没有用。将限制更改为10兆字节。

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

1 个答案:

答案 0 :(得分:1)

将此添加到您的web.config

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="1000000" />
    </system.web>
</configuration>

点击此链接了解详情:http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits

相关问题