.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烦恼列表之上。

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...