有没有大小限制的数据可以发送到WCF服务的金额? [英] Is there a size limit to the amount of data you can send to a WCF service?

查看:94
本文介绍了有没有大小限制的数据可以发送到WCF服务的金额?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有大小限制的数据可以发送到WCF服务的金额? 我送过来对象的数组当数组被成为具有一定规模,我得到一个404错误的请求例外。

Is there a size limit to the amount of data you can send to a WCF service? I send an array of objects over and when the array gets to be a certain size, I get a 404 bad request exception.

这是httpHosting的限制?请问另一种类型的托管工作更好吗?

Is this a limit of httpHosting? Would another type of hosting work better?

推荐答案

有一个最大的数组大小和最大内容大小。 下面是XML(把你的App.config),以增加大小。

There is a maximum array size and maximum content size. Here is the XML (put in your App.config) to increase the size.

指定网络的TCP绑定配置:

specify net tcp binding config:

    <bindings>
        <netTcpBinding>
          <binding name="TCPSession"  
closeTimeout="01:01:00"
            openTimeout="01:01:00" receiveTimeout="01:10:00" sendTimeout="01:01:00"
            transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
            hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647"
            maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647"
        </netTcpBinding>
      </bindings>

这篇关于有没有大小限制的数据可以发送到WCF服务的金额?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆