Codechef4u is a community for computer professionals,by computer professionals,just like you; who loves sharing and helping each others,Join them
Share your post

The maximum message size quota for incoming messages (65536) has been exceeded.

Error:

System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (65536) has been exceeded.
To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

 Fix:

You can set at web.config MaxReceivedMessageSize property to another value
You should set maxReceivedMessageSize="2147483647" to increase message size.

Try below changes in config file:

<bindings>
          <wsHttpBinding>
              <binding name="WsHttpBinding_IYourService" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">
              </binding>
          </wsHttpBinding>
          <basicHttpBinding>
              <binding name="BasicHttpBinding_IYourService "maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
              </binding>
          </basicHttpBinding>
      </bindings>
    <client />

Share your answer


Share as a guest

Please subscribe me to the CodeChef4U.

By creating your new answer, you agree to the privacy policy and terms of service.