[英]Is there a size limit to the amount of data you can send to a WCF service?
Is there a size limit to the amount of data you can send to a WCF service? 可发送给WCF服务的数据量是否有大小限制? I send an array of objects over and when the array gets to be a certain size, I get a 404 bad request exception.
我发送了一个对象数组,当数组达到一定大小时,我收到404错误的请求异常。
Is this a limit of httpHosting? 这是httpHosting的限制吗? Would another type of hosting work better?
另一种托管方式会更好吗?
There is a maximum array size and maximum content size. 有最大的数组大小和最大的内容大小。 Here is the XML (put in your App.config) to increase the size.
这是XML(将其放入您的App.config中)以增加大小。
specify net tcp binding config: 指定net tcp绑定配置:
<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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.