对'http:///xxx.svc'的HTTP请求已超出分配的超时

时间:2013-01-08 10:47:13

标签: .net wcf http .net-remoting

我正在调查以下TimeoutException异常。有没有人遇到过这个?有人可以提出解决方案吗?

我们有一个客户端连接到WCF服务,通过HTTP上传数据有效负载。最近服务器失败了。以下是一些例外情况:

  

mscorlib抛出了TimeoutException对'http:///xxx.svc'的HTTP请求   已超过00:00:10的分配超时。分配给的时间   此操作可能是较长超时的一部分。

     

服务器堆栈跟踪:at   System.Runtime.AsyncResult.End [TAsyncResult](IAsyncResult结果)
  在   System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult   结果)在   System.ServiceModel.Channels.ServiceChannel.EndCall(String action,   对象[]出,IAsyncResult结果)at   System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage   methodCall,ProxyOperationRuntime operation)at   System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即时聊天   消息)

     

在[0]处重新抛出异常:at   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(即时聊天   reqMsg,IMessage retMsg)at   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&安培;   msgData,Int32类型

请原谅我的简洁。我不是WCF专家。任何建议将不胜感激。

我可以增加超时值吗?

1 个答案:

答案 0 :(得分:2)

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

以下是MSDN上的几个链接:

将军:Configuring Services Using Configuration Files

绑定:Configuring Bindings for Windows Communication Foundation Services