默认情况下,iis7的上传限制为200k。当上传文件小于30M时,可以在web.config中加入如下配置:
<system.web>
<httpRuntime maxRequestLength="1073741824" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" targetFramework="4.5.2" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824"></requestLimits>
</requestFiltering>
</security>
</system.webServer>
以下方法是不正确或不好的方法
网上还有好多方法要去修改:“C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml”文件,但这样确实能做到,但如果在系统安装补丁时,有可能对这个文件进行覆盖,让设置失败,另外,也有说修改: