我正在为客户端设置服务器(我通常不会这样做),而且我遇到了上传大文件(11MB)的问题.服务器正在运行添加了IIS的Windows 7 Professional.
在web.config中我尝试过设置
<system.web>
<httpRuntime maxRequestLength="65536" /> <!-- 64MB -->
</system.web>
Run Code Online (Sandbox Code Playgroud)
......那不起作用.
我已经定了
<system.webSecurity>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="68157440" />
</requestFiltering>
</security>
</system.webSecurity>
Run Code Online (Sandbox Code Playgroud)
......那也不起作用.
我在这里错过了什么?正如我所说,我通常不会设置服务器,因此我可能会遗漏一些明显的东西......没有任何建议会被嘲笑!
提前致谢.