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" 属性。

  • 相关阅读:
    竖版文字排列实现《金刚般若波罗蜜心经》
    前端气泡效果实现的方式
    纯CSS绘制三角形
    什么是块级格式上下文
    绝对定位元素left、right、top、bottom值与其margin和宽高的关系
    currentColor在CSS的含义
    HTML/css清除浮动的几种方式
    W3C中不同标准的含义
    table表格标签的属性
    输入你的生日某年某月某日,判断这一天是这一年的第几天、星期几?
  • 原文地址:https://www.cnblogs.com/BabyRui/p/10283829.html
Copyright © 2011-2022 走看看