最大请求长度超过IIS 7 [英] Maximum request length exceeded iis 7

查看:321
本文介绍了最大请求长度超过IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我AP preciate这已经被问过无数次,但我似乎无法得到这个工作。

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" />

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

不过,我得到抛出的最大请求长度例外。

I am however getting a maximum request length exception thrown.

我的消息的内容长度:内容长度:7785556

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

任何人都可以提出一个设定我可能忽略了?

Can anyone suggest a setting i may have overlooked?

推荐答案

这取决于Framework版本,在2.0 的httpRuntime 的作品。在其他版本的框架,你应该使用的requestFiltering 部分来定义这个限制。

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

这篇关于最大请求长度超过IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆