【转自】http://www.zzsky.cn/build/content/702.htm
1.IIS->[网站]->属性-》连接超时,默认为120秒
2.WEB.CONFIG 手工添加httpRuntime,如
1
<system.web>
2
<httpRuntime maxRequestLength="1000000" executionTimeout="2000" />
3
</system.web>

2

3

3.同步执行WEBSERVICE时,需要设置TIMEOUT属性,如
1
CompilerSvr.MyFavoritesService compiler=new FDN.DMS.Controls.CompilerSvr.MyFavoritesService();
2
compiler.Timeout =2000000; //毫秒

2
