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

  • 相关阅读:
    顺序表
    顺序表实验2
    C艹不使用库函数简陋实现strlen
    数据结构化与保存
    爬取校园新闻首页的新闻
    网络爬虫基础练习
    词频统计
    组合数据类型练习,综合练习
    Python基础综合练习
    熟悉常用的Linux操作
  • 原文地址:https://www.cnblogs.com/BabyRui/p/10283829.html
Copyright © 2011-2022 走看看