我有一个Web,它接收客户端地址指向的项目中的信息:http://Server/PaymentWCF/Service.svc?WSDL
ServiceClient client = new ServiceClient();
foreach (Record rc in ListOne)
{
client.RecordInsert(rc);
}
foreach (Record rc in ListTwo)
{
client.RecordInsert(rc);
}
client.Close();因为我们有许多记录要处理,所以有时我们会让ServiceClient打开一段时间。(最多3,000人)昨晚,我收到以下错误消息:
请求通道在00:04:59.9374976之后等待回复时超时。增加传递给请求调用的超时值,或增加绑定上的SendTimeout值。分配给此操作的时间可能是较长超时的一部分。
但是,绑定没有任何值为00:04:59,在任何地方:
<wsHttpBinding>
<binding name="WSHttpBinding_IService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>如果我们每1000个记录打开和关闭连接,它会起作用吗?客户不会超时,因为它不会开很久。当我们处理1000到15000张记录时,我们有正常的操作。但是,当我们有超过3,000是我们开始看到超时。
你建议我怎么做?
发布于 2011-11-15 15:00:36
检查IIS设置了吗?
https://stackoverflow.com/questions/8138227
复制相似问题