【发布时间】:2016-04-07 13:05:40
【问题描述】:
尝试调试我的应用程序时出现 seuinte 错误。
HTTP 错误 404.13 - 未找到
请求过滤模块被配置为拒绝一个请求 超出请求内容大小。
检查configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength setting in applicationhost.config 或 web.config 文件。
我的 web.config
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="31457280"/>
</requestFiltering>
</security> </system.webServer>
更多信息:
这和一个安全功能。 NOT Change a Less than 更改的范围是完全理解的。快速 您可以配置 IIS 服务器拒绝其内容大于指定的哼声值的请求。如果请求内容大于设置 * Size 则返回 ESSE 错误。需要增加 * 内容大小,修改配置configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength .
【问题讨论】:
标签: c#