在web.config中添加如下配置:
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="314572800"></requestLimits>
</requestFiltering>
</security>
</system.webServer>
maxAllowedContentLength="314572800" 表示最大上传内容大小为300M,你根据需要设置成自己的值就行了