1、web.config配置,<system.web></system.web>裡面增 加:
<httpruntime maxrequestlength="10240" apprequestqueuelimit="100" usefullyqualifiedredirecturl="true"executiontimeout="1200" />
2、擴大代理類的逾時限制,預設是90秒
650) this.width=650;" onresize="" onchange="" onfocus="" onmouseover="" onsubmit="" onmousemove="" onreset="" ondblclick="" onkeypress="" onkeyup="" onmouseout="" onmousedown="" onselect="" onclick=""
align="top" src="http://guuuo.blog.51cto.com/'#\'"" onunload="" inblock.gif?="" editer="">yourwebservice yws = new yourwebservice();
align="top" src="http://guuuo.blog.51cto.com/'#\'"" onunload="" inblock.gif?="" editer="">yws.timeout = 1200000; //20分鐘
3、iis屬性-網站 連接配接逾時時間 1200秒
1、修改 app.config 檔案,添加如下代碼:
<httpruntime executiontimeout="600" />
請求執行逾時時間為600秒(預設為110秒)
2、設定 web services 的 timeout 屬性
對 xml web services 的同步調用的逾時(以毫秒為機關)。預設為 100000 毫秒。
align="top" src="http://guuuo.blog.51cto.com/'#\'"" onunload="" inblock.gif?="" editer="">lywsqcommon.sqsddata.getdata getdata = new lywsqcommon.sqsddata.getdata();//getdata
為類名
align="top" src="http://guuuo.blog.51cto.com/'#\'"" onunload="" inblock.gif?="" editer="">
getdata.timeout=700000;//機關為毫秒
訓示 xml web services 用戶端等待同步 xml web services 請求完成的時間(以毫秒計)。
提示:如果将 timeout 屬性設定為 timeout.infinite,則訓示該請求無逾時。即使 xml web services 用戶端可以将 timeout 屬性設定為無逾時,web 伺服器仍可以在伺服器端使請求逾時。
系統将以上面兩項設定的最小者作為操作逾時的時間長度。