iis7上托管的WCF的超时增加 [英] Increasing Timeout for WCF hosted on iis7

查看:165
本文介绍了iis7上托管的WCF的超时增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS7上托管了WCF.当我尝试使用花费超过90秒才能产生结果的服务时,该服务在90秒后超时.

I have a WCF hosted on IIS7. When I try to consume a service that takes more than 90 seconds to produce results, it times out after 90 second.

  1. 在Web配置中,我的executeTimeout已增加到900秒

     <system.web>  
        <compilation debug="false" strict="false" explicit="true" targetFramework="4.5" />  
        <httpRuntime targetFramework="4.5" executionTimeout="900" shutdownTimeout="900" maxRequestLength="2097152" enable="true"/>  
        <pages>  
          <namespaces>  
            <add namespace="System.Runtime.Serialization"/>  
            <add namespace="System.ServiceModel"/>  
             <add namespace="System.ServiceModel.Web"/>  
          </namespaces>  
        </pages>  
        <customErrors mode="Off"/>  
    <trace enabled ="true" pageOutput ="true" requestLimit ="20" traceMode="SortByTime" />    
     </system.web>

  1. 在IIS端,我已将 scriptTimeout 设置为00:05:10. (默认网站-> ASP->限制属性-> scriptTimeout)

  1. On the IIS side, I have set scriptTimeout to 00:05:10. (Default Website->ASP->Limits Properties->scriptTimeout)

在应用程序池"的高级设置"中,我已将 Ping最大响应时间设置为300秒(以及关闭时间限制.认为这会有所帮助.)

In Application Pools, Advanced Settings, I have set Ping Maximum Response Time to 300 seconds (as well as Shutdown Time Limit. Though I don't think this helps.)

即使我可以找到的每个超时变量都增加了90秒以上,我的服务仍然在90秒后超时.

Even though I have increased every timeout variable I could find to over 90 second, my service still times out at 90 seconds.

有人知道我可能会错过超时吗?

Anyone know a timeout I might have missed?

推荐答案

我从我的TEST服务器上的配置中获取了此文件...可行.您肯定要更改这些值.

I took this from my config on my TEST server... this works. You're definitely going to want to change these values.

    <binding name="tcp_unsecured_HighLimit" closeTimeout="23:59:59" openTimeout="23:59:59" receiveTimeout="23:59:59" sendTimeout="23:59:59" >
      <readerQuotas maxDepth="104857600" maxStringContentLength="2000000000" maxArrayLength="2000000000" 
                    maxBytesPerRead="2000000000" maxNameTableCharCount="2000000000" />
      <security mode="None" />
    </binding>
  </netTcpBinding>
</bindings>

这篇关于iis7上托管的WCF的超时增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆