看看这里。
您必须将以下代码添加到应用程序的 web.config 中:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength ="2147482624" /><!--this value in bytes~2GB-->
</requestFiltering>
</security>
<system.webServer>
Run Code Online (Sandbox Code Playgroud)
另外,在 web.config 中找到system.web部分和httpRuntime 键,并修改该键的maxRequestLength和executionTimeout属性,如我给您的参考文献中所述。
我希望这对你有用。
| 归档时间: |
|
| 查看次数: |
5970 次 |
| 最近记录: |