zoukankan      html  css  js  c++  java
  • 对“http://localhost:XXXX/ICG_LS.svc”的 HTTP 请求已超过为 00:01:00 分配的超时。为此操作分配的时间可能是较长超时的一部分。

    <system.serviceModel>
    <bindings>
          <basicHttpBinding>
            <binding name="BankDataServiceSoap" />
            <binding name="MyServiceSoap" maxReceivedMessageSize="2147483647" openTimeout ="00:10:00" receiveTimeout ="00:10:00" sendTimeout ="00:10:00" closeTimeout ="00:10:00" />
            <binding name="BasicHttpBinding_IService" maxReceivedMessageSize="2147483647" openTimeout ="00:10:00" receiveTimeout ="00:10:00" sendTimeout ="00:10:00" closeTimeout ="00:10:00" />
          </basicHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://portal.kcisec.com/BankDataService.asmx" binding="basicHttpBinding" bindingConfiguration="BankDataServiceSoap" contract="kqService.BankDataServiceSoap" name="BankDataServiceSoap" />
          <endpoint address="http://192.168.10.46:8070/MyService.asmx" binding="basicHttpBinding" bindingConfiguration="MyServiceSoap" contract="sgService.MyServiceSoap" name="MyServiceSoap" />
          <endpoint address="http://localhost:2440/ICG_LS.svc"
                  binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService"
                  contract="Db.Charge.IDAL.ICG_LS" name="BasicHttpBinding_IService" />
          
        </client>
      </system.serviceModel>

      当使用WCF的客户端调取的数据过多时,会出现这个异常。一般情况下,系统默认值是65536,大约容纳100-200条左右的数据。所以建议您在您的项目中,为了避免使用时时期出现这个错误。您应该使用如下解决方案。

      解决方案:在客户端的web.Config或Config文件中,加入  maxReceivedMessageSize="2147483647" openTimeout ="00:10:00" receiveTimeout ="00:10:00" sendTimeout ="00:10:00" closeTimeout ="00:10:00" 属性。

  • 相关阅读:
    mybatis查询结果转为string时,若包含null,会报错误
    gdal java环境配置
    git 命令整理
    [转抄]oracle单表查询去重(效率比较高的一种方式)
    值得学习的C语言开源项目(从新浪博客摘抄)
    [转]整理一些好的开源项目
    布尔类型
    软测基本术语
    PIE模型
    一个网页的测试
  • 原文地址:https://www.cnblogs.com/BabyRui/p/10283829.html
Copyright © 2011-2022 走看看