Is there a limit on the size of the data you can send to the WCF service?

Is there a limit on the size of the data you can send to the WCF service? I send an array of objects, and when the array gets a specific size, I get a 404 error exception.

Is this the limit of httpHosting? Will another type of hosting work better?

+4
source share
1 answer

Maximum array size and maximum content size. Here is the XML (add to App.config) to increase the size.

specify net tcp binding configuration:

<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> 
+2
source

All Articles