Thursday, January 23, 2014

Wcf-The maximum message size quota for incoming messages (65536) has been exceeded?

Set following parameters in your web.config

<bindings>
      <basicHttpBinding>
        <binding name="bindingName" maxBufferSize="2147483647"
         maxBufferPoolSize="2147483647"
         maxReceivedMessageSize="2147483647">
          <readerQuotas maxDepth="2147483647"
                  maxStringContentLength="2147483647"
                  maxArrayLength="2147483647"
                  maxBytesPerRead="2147483647"
                  maxNameTableCharCount="2147483647" />
        </binding>
      </basicHttpBinding>
      <wsHttpBinding>
        <binding name="WSHttpBinding_IApiService" />
        <binding name="WSHttpBinding_IApiService1" />
      </wsHttpBinding>
    </bindings>


http://stackoverflow.com/questions/19564047/wcf-the-maximum-message-size-quota-for-incoming-messages-65536-has-been-exceed

No comments:

Post a Comment