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

I'm getting this error when trying to run an update with Dynamics GP Web Services 2015:

An unhandled exception of type 'System.ServiceModel.CommunicationException' occurred in mscorlib.dll

Additional Information: 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.

 

 I took me a while to figure out how to fix this. In the app.config, add maxReceivedMessageSize as shown

<bindings >
    <wsHttpBinding >
        <binding name="GPWebService" maxReceivedMessageSize="2147483647"/>
    </wsHttpBinding>
</bindings>


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences