1、IIS->[网站]->属性-》连接超时。默认为120秒
2、web.config 手工添加 httpRuntime,如
<system.web>
<httpRuntime executionTimeout="2000" maxRequestLength="1000000" />
</system.web>
3、同步执行 WebService 时,需要设置 Timeout 属性,如
CompilerSvr.MyFavoritesService compiler = new FDN.DMS.Controls.CompilerSvr.MyFavoritesService(); compiler.Timeout =2000000; //毫秒