問題描述
問題:HTTP 錯誤 404.13 - Not Found 請求篩選模塊被配置為拒絕超過請求內容長度的請求。
原因:Web 服務器上的請求篩選被配置為拒絕該請求,因為內容長度超過配置的值(IIS 7 默認文件上傳大小時30M)。
解決方法
web.config中,添加如下內容
<system.webServer> <security> <requestFiltering> <requestLimits maxQueryString="102400" maxAllowedContentLength="102400000"/> </requestFiltering> </security> </system.webServer>