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

  • 相关阅读:
    charCodeAt() 和charAt()
    去除全角空格
    string字符串js操作
    取小数的常见操作
    js取最大最小值
    js加减法运算多出很多小数点
    js设置div透明度
    setTimeout设置不起作用
    node.js 找不到 xxx 模块解决办法
    servlet 监听器和过滤器入门
  • 原文地址:https://www.cnblogs.com/BabyRui/p/10283829.html
Copyright © 2011-2022 走看看