I double checked my web.config on server side (IIS) and everything was fine.
But!!! the size 65536 was in client app.config! The client configuration was not reflecting server WCF configuration, changing maxReceivedMessageSize to e.g. 2147483647 is solution.
Code Snippet
- <system.serviceModel>
- <bindings>
- <basicHttpBinding>
- <binding name="BasicHttpBinding_IeDocsInterfaceCUD" closeTimeout="00:10:00"
- openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
- allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
- maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
- messageEncoding="Mtom" textEncoding="utf-8" transferMode="Buffered"
- useDefaultWebProxy="true">
- <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
- maxBytesPerRead="4096" maxNameTableCharCount="16384" />
- <security mode="None">
- <transport clientCredentialType="None" proxyCredentialType="None"
- realm="" />
- <message clientCredentialType="UserName" algorithmSuite="Default" />
- </security>
- </binding>
Žiadne komentáre:
Zverejnenie komentára