开发者

data transfering problem WCF

Why cant I send array with more than 3000 elements with size ~5 MB but with table with size 2500 elements there is no problem ?

<binding name="testBinding" maxBufferSize="100485760" maxReceivedMessageSize="100485760" maxBufferPoolSize="100485760" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <readerQuotas maxDepth="1000" maxStringContentLength="100485760" maxArrayLength="100485760" maxBytesPerRead="100485760" 开发者_运维问答maxNameTableCharCount="100485760" />
        </binding>

Changing of any of this parameters doesnt give any good results


I think you are hosting your service in IIS. In such case you must also set ASP.NET request limit which is by default 4096KB.

<system.web>
  <httpRuntime maxRequestLength="4096" />
</system.web>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜