【发布时间】:2011-05-23 20:43:06
【问题描述】:
我刚刚创建了一个 WCF 服务库。我创建了一个测试函数,并从 WCF 测试客户端调用了该测试函数。我在代码中设置了一个断点。控制到达断点并停在那里。现在我让控件在断点处停留一段时间,大约一分钟后得到以下错误消息
"调用服务失败。可能的原因:服务下线或无法访问;客户端配置与代理不匹配;现有代理无效。详细请参考堆栈跟踪。您可以尝试通过启动新代理、恢复到默认配置或刷新服务来恢复。”
错误详情: 00:00:59.9843750 后等待回复时请求通道超时。增加传递给 Request 调用的超时值或增加 Binding 上的 SendTimeout 值。分配给此操作的时间可能是较长超时的一部分。
服务器堆栈跟踪:
在 System.ServiceModel.Channels.RequestChannel.Request(消息消息,TimeSpan 超时)
在 System.ServiceModel.Channels.ClientReliableChannelBinder1.RequestClientReliableChannelBinder1.OnRequest(TRequestChannel 通道,消息消息,TimeSpan 超时,MaskingMode maskingMode)
在 System.ServiceModel.Channels.ClientReliableChannelBinder1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)
at System.ServiceModel.Channels.ClientReliableChannelBinder1.Request(消息消息,TimeSpan 超时)
在 System.ServiceModel.Security.SecuritySessionClientSettings`1.SecurityRequestSessionChannel.Request(消息消息,TimeSpan 超时)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(消息消息,TimeSpan 超时)
在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作,布尔单向,ProxyOperationRuntime 操作,Object[] 输入,Object[] 输出,TimeSpan 超时)
在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作,布尔单向,ProxyOperationRuntime 操作,Object[] 输入,Object[] 输出)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(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(MessageData& msgData,Int32 类型) 在 ITrustmarkService.StartRobotProcess() 在 TrustmarkServiceClient.StartRobotProcess()
知道是什么原因造成的吗?
【问题讨论】: