问题描述#
问题:HTTP 错误 404.13 - Not Found 请求筛选模块被配置为拒绝超过请求内容长度的请求。
原因:Web 服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值(IIS 7 默认文件上传大小时30M)。
解决方法#
web.config中,添加如下内容#
<system.webServer> <security> <requestFiltering> <requestLimits maxQueryString="102400" maxAllowedContentLength="102400000"/> </requestFiltering> </security> </system.webServer>