服务调用上的 WCF 超时异常 [英] WCF Timeout exception on service call

查看:26
本文介绍了服务调用上的 WCF 超时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WCF 服务,在直播时出现以下错误

事件代码:3005事件消息:发生了未处理的异常.活动时间:19/06/2012 10:39:09活动时间(UTC):19/06/2012 09:39:09事件 ID:501c1b630958413db7c7f746b0a467f7事件序列:74336事件发生:742事件详细代码:0应用信息:应用域:/LM/W3SVC/5/ROOT-1-129844753959691296信任级别:完整应用程序虚拟路径:/申请路径:<private>机器名称:<private>处理信息:进程 ID:6112进程名称:w3wp.exe账户名:IIS APPPOOL\异常信息:异常类型:超时异常异常消息:对/EndPoint.svc"的 HTTP 请求已超过分配的超时时间 00:01:00.分配给此操作的时间可能是较长超时的一部分.在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)操作已超时在 System.Net.HttpWebRequest.GetResponse()在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)索取资料:请求网址:http:///请求路径:/用户主机地址:<private>用户:已认证:假认证类型:线程账户名:IIS APPPOOL\线程信息:线程 ID:110线程账户名:IIS APPPOOL\冒充:假堆栈跟踪:在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)自定义活动详情:

我们的网站已关闭,我不知道该怎么做.任何想法都是最受欢迎的.

解决方案

尝试增加 SendTimeoutReceiveTimeout 服务/客户端配置中的属性.

WCF Service ,如何增加超时时间?>

I have a WCF service that is giving the following error on live

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 19/06/2012 10:39:09 
Event time (UTC): 19/06/2012 09:39:09 
Event ID: 501c1b630958413db7c7f746b0a467f7 
Event sequence: 74336 
Event occurrence: 742 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/5/ROOT-1-129844753959691296 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: <private> 
    Machine name: <private> 

Process information: 
    Process ID: 6112 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\<private> 

Exception information: 
    Exception type: TimeoutException 
    Exception message: The HTTP request to '<private>/EndPoint.svc' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)



Request information: 
    Request URL: http://<private>/ 
    Request path: / 
    User host address: <private> 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\<private>  

Thread information: 
    Thread ID: 110 
    Thread account name: IIS APPPOOL\<private>  
    Is impersonating: False 
    Stack trace:    at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)


Custom event details: 

Our site is down and I don't know what to do here. Any ideas are most welcome.

解决方案

Try increasing the SendTimeout and ReceiveTimeout properties in service/client configurations.

WCF Service , how to increase the timeout?

这篇关于服务调用上的 WCF 超时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆