2

I am investigating the following TimeoutException exception. Has anyone encountered this before? Can anyone suggest a solution?

We have a clients that connect to a WCF service to upload a payload of data via HTTP. Recently the server is failing. Here are some exception details:

mscorlib threw TimeoutException The HTTP request to 'http:///xxx.svc' has exceeded the allotted timeout of 00:00:10. The time allotted to this operation may have been a portion of a longer timeout.

Server stack trace: at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type

Please excuse my brevity. I am not a WCF expert. Any recommendations would be much appreciated.

Is there a timeout value I can increase?

4

1 回答 1

2

您可以增加receiveTimeout绑定的属性。

以下是 MSDN 上的几个链接:

常规:使用配置文件配置服务

绑定:为 Windows Communication Foundation 服务配置绑定

于 2013-01-08T11:04:33.837 回答