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

后端 未结 1 1162
广开言路
广开言路 2021-01-20 03:08

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 requ

相关标签:
1条回答
  • 2021-01-20 03:27

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

    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>
    
    0 讨论(0)
提交回复
热议问题