【发布时间】:2009-08-27 13:30:41
【问题描述】:
我在 WCF 中遇到超时问题。
以下是错误:
{"请求通道在 00:00:59.9843744 之后等待回复时超时。增加传递给 Request 调用的超时值或增加 Binding 上的 SendTimeout 值。分配给此操作的时间可能是较长超时的一部分。"}
google了一下,找到了解决办法
来自这个网站
http://social.msdn.microsoft.com/Forums/en-US/peertopeer/thread/38306972-3128-4f0c-937b-5d162d4d8e74
所以我相应地更改了我的 app.config 文件
<behavior name="ContactServiceBehaviour">
<serviceMetadata httpGetEnabled="true" />
<dataContractSerializer maxItemsInObjectGraph="1000000000"/>
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceThrottling maxConcurrentCalls="100"
maxConcurrentSessions="100"
maxConcurrentInstances="100"/>
</behavior>
解决办法是什么?
【问题讨论】:
-
嗨,你在这里没有给出太多的东西。您在托管服务吗?还是您正在运行 WCF 客户端?