加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

.net – WCF Windows Service TimeOut

发布时间:2020-12-13 20:50:57 所属栏目:Windows 来源:网络整理
导读:我有一个客户端应用程序开发.net seding请求wcf服务,并应该发送回复.if执行时??间在1分钟内,没有错误,如果超过 1分钟的错误是 Inner exception: This request operation sent to net.tcp://localhost:18001/PitToPort/2008/01/30/StockpileService/tcp di
我有一个客户端应用程序开发.net seding请求wcf服务,并应该发送回复.if执行时??间在1分钟内,没有错误,如果超过
1分钟的错误是

Inner exception: This request operation sent to net.tcp://localhost:18001/PitToPort/2008/01/30/StockpileService/tcp did not receive a reply within the configured timeout (00:01:00).
The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client

如何增加超时和如何?什么是最好的解决方案?

小心,这个错误信息是一个WCF发送的样板字符串,当它没有一个线索发生了什么。这真的意味着“mmh在链中出了问题,但我不确定是什么,所以,这里有一些关于配置的琐事,做你想要的。

当你收到这个消息时,与实际的超时无关。在服务方法返回结果的时间和实际字节通过电子邮件发送之间,可以是配额(图中的对象数,总体大小,数组长度)或服务器端出错的情况。所以,你应该检查你的配置设置(而不是超时),除非你必须等待一分钟才能得到错误,如果你马上得到错误,那么与超时无关)。

这个无用的信息在我的WCF烦恼列表之上。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读