Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 增加WCF服务的查询超时时间_Asp.net_Sql Server_Web Services_Wcf - Fatal编程技术网

Asp.net 增加WCF服务的查询超时时间

Asp.net 增加WCF服务的查询超时时间,asp.net,sql-server,web-services,wcf,Asp.net,Sql Server,Web Services,Wcf,我有一个非常长的SQL查询,执行起来需要2分钟。我在我的WCF服务中使用了这个查询,它给出了这个异常 执行超时已过期。操作完成前的超时时间或服务器没有响应。将此代码添加到我的web配置文件后无法解析 <system.serviceModel> <bindings> <wsHttpBinding> <binding openTimeout="00:10:00" closeTimeout="00:10:00"

我有一个非常长的SQL查询,执行起来需要2分钟。我在我的WCF服务中使用了这个查询,它给出了这个异常
执行超时已过期。操作完成前的超时时间或服务器没有响应
。将此代码添加到我的web配置文件后无法解析

<system.serviceModel>
<bindings>
  <wsHttpBinding>
    <binding openTimeout="00:10:00"
             closeTimeout="00:10:00"
             sendTimeout="00:10:00"
             receiveTimeout="00:10:00">
    </binding>
  </wsHttpBinding>
</bindings>


<services>
  <service name="longTimeoutService"
    behaviorConfiguration="longTimeoutBehavior">
    <endpoint address="net.tcp://localhost/longtimeout/"
      binding="netTcpBinding" bindingConfiguration="longTimeoutBinding" />
  </service>
</services>


我如何处理这个问题请指导我。谢谢

您是否为客户端和服务器配置文件都设置了超时?请延长查询执行超时,查看此页面以获取超时信息“”