在web.config中的system.web 节点下添加如下代码:
第2行的maxRequestLength="8192",这里限制最大为8MB,可以自行设置。executionTimeout="800",executionTimeout预设(即默认)是 90 秒
1 <system.web> 2 <httpRuntime maxRequestLength="8192" executionTimeout="800"/> 3 </system.web>