The maximum message size quota for incoming messages (65536) has been exceeded (the all duplicates reviewed)

43 views Asked by At

A WCF service connects to a remote server to get data (the server is not configurable by me). I have increased maxReceivedMessageSize, maxBufferSize, maxBufferPoolSize, maxDepth, maxStringContentLength, maxArrayLength, maxBytesPerRead, maxNameTableCharCount in web.config and still the error persists. I have tested many replies on the same question but none of them worked. I have also increased maxItemsInObjectGraph with no success. Any idea?

`

<bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IMeteringDataService" allowCookies="true"
          maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647"
            maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="TransportWithMessageCredential" />
        </binding>
      </basicHttpBinding>
    </bindings>`
1

There are 1 answers

0
Jiayao On

As far as I know, you need to change the parameter on both the server-side and the client-side, or it will not take effect.