开发者

WCF Request Channel Timeout Error

I have an app that calls a WCF service in high frequency. The app starts out working fine and then after a few minutes, every call starts generating this error:

System.TimeoutException: The request channel timed out attempting to send after 00:02:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.

I've tried everything I can think of to get around this error, such as:

  • Setting multiple concurrencymode on the service:

[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)] public class ListingService : IListingService

  • Setting higher limits for max concurrent calls/sessions/instances in the service web.confi开发者_StackOverflowg:

serviceThrottling maxConcurrentCalls="100000" maxConcurrentSessions="100000" maxConcurrentInstances="100000"

  • Setting a higher servicepointmanager defaultconnectionlimit on application_start on the service's global.asax:

protected void Application_Start(object sender, EventArgs e) { System.Net.ServicePointManager.DefaultConnectionLimit = 100000; }

  • Making sure I'm closing client connections:

using (var client = new ListingServiceClient()) { client.SaveListing(listing); client.Close(); }

Here is the services web.config - http://pastebin.com/d9qtZUKN

However, I'm still getting the error. I'm sure that the service call does not take that long. Any ideas?


The issue was the db timing out which caused WCF to time out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜