【问题标题】:The HTTP request to 'http:///xxx.svc' has exceeded the allotted timeout对“http:///xxx.svc”的 HTTP 请求已超过分配的超时时间
【发布时间】:2012-12-22 04:53:33
【问题描述】:

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

我们有一个客户端连接到 WCF 服务以通过 HTTP 上传数据负载。最近服务器出现故障。以下是一些异常详情:

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

服务器堆栈跟踪:在 System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult 结果)
在 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult 结果)在 System.ServiceModel.Channels.ServiceChannel.EndCall(字符串动作, Object[] 输出,IAsyncResult 结果)在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall,ProxyOperationRuntime 操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage 留言)

在 [0] 处重新抛出异常:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(消息数据& msgData,Int32 类型

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

有没有可以增加的超时值?

【问题讨论】:

    标签: .net wcf http .net-remoting


    【解决方案1】:

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

    这是 MSDN 上的几个链接:

    一般:Configuring Services Using Configuration Files

    绑定:Configuring Bindings for Windows Communication Foundation Services

    【讨论】:

      猜你喜欢
      • 2011-05-07
      • 2020-05-01
      • 1970-01-01
      • 2011-11-05
      • 2010-12-12
      • 2014-04-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多