微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.net – WCF Windows Service TimeOut

我有一个客户端应用程序开发.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烦恼列表之上。

原文地址:https://www.jb51.cc/windows/372326.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐