C# 服务超时

C# 服务超时,c#,asp.net,wcf,web-services,visual-studio-2010,C#,Asp.net,Wcf,Web Services,Visual Studio 2010,我有一个Web服务,它接收客户端地址指向的项目中的信息: 由于我们有许多记录要处理,所以有时会将ServiceClient打开一段时间。(截至3000)昨晚,我收到以下错误消息: 请求通道在00:04:59.9374976之后等待答复时超时。增加传递给请求调用的超时值或增加绑定上的SendTimeout值。分配给此操作的时间可能是较长超时的一部分 但是,绑定在以下任何位置都没有任何值00:04:59: <wsHttpBinding> <

我有一个Web服务,它接收客户端地址指向的项目中的信息:

由于我们有许多记录要处理,所以有时会将ServiceClient打开一段时间。(截至3000)昨晚,我收到以下错误消息:

请求通道在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条记录时,我们的操作正常。但当我们上升到3000时,我们开始看到超时


您建议我如何执行此操作?

您是否检查了IIS设置?

“但是,绑定在任何位置都没有任何00:04:59的值”超时是近似值,将在某个位置设置为5分钟。您是如何托管此服务的?我猜是IIS?哪个版本?另外,检查客户端和服务器端的配置设置。这些设置在IIS中的什么位置?(Windows Server 2008)这个答案是否可以扩展到包括实际解决方案是什么?
        <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>