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

  • 相关阅读:
    jQuery 点击超链接生成一个的页面,点击几次,生成几个新页面
    Zookeeper基本信息
    性能测试基础
    Java安装及基础01
    手机抓包手册
    在linux环境下部署禅道环境
    Linux基础命令2
    Linux基础命令1
    SQL SERVER 基本操作语句
    MYSQL多表查询
  • 原文地址:https://www.cnblogs.com/BabyRui/p/10283829.html
Copyright © 2011-2022 走看看