IIS 6 版本
<system.web> <!--maxRequestLength:上传的大小,单位KB 51200->500M,executionTimeout:设置超时时间,单位:秒。(默认是90秒) --> <httpRuntime maxRequestLength="512000" executionTimeout="200" /> </system.web>
IIS 7 以上版本
<system.webServer> <security> <requestFiltering> <!--maxAllowedContentLength:上传的大小524288000->500M,单位Byte --> <requestLimits maxAllowedContentLength="524288000" /> </requestFiltering> </security> </system.webServer>