【问题标题】:Throttling connections to ASMX Web Service from the client side限制从客户端到 ASMX Web 服务的连接
【发布时间】:2012-02-29 12:46:52
【问题描述】:

我正在使用 Async 方法重复调用 asmx 服务并收到此错误

The HTTP request to 'https://example.com/WebService.asmx' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.

有什么简单的方法可以限制我的调用,以免服务器过载,因此我的请求会及时返回(假设这是问题所在)?

【问题讨论】:

    标签: c# .net web-services asmx


    【解决方案1】:

    如果您使用的是网络参考,则没有内置的方法可以做到这一点。

    事实上,我也不认为有办法通过服务引用来做到这一点。

    【讨论】:

    • 谢谢你,我刚刚想到了一个涉及 TryInvokeMember 和队列的疯狂想法。
    猜你喜欢
    • 2014-07-04
    • 2010-11-17
    • 1970-01-01
    • 1970-01-01
    • 2014-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-10
    相关资源
    最近更新 更多