ITeye博客

调用webservice超时问题的解决

shellfish · 2015-03-27 11:02 · C# · 编程语言 · Markdown

c#做的webservice经常忘记扩大超时限制:

1、web.config: <system.web></system.web>里面增加:

2、扩大代理类的超时限制,默认是90秒 YourWebService yws = new YourWebService(); yws.Timeout = 1200000; //20分钟

3、IIS属性-网站 连接超时时间 1200秒

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。