How to Increase Message Size Quota

Sometimes when dealing with web services that return large amounts of data you get the follow error message.

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.

This can be fixed by increasing the maxReceivedMessageSize, maxBufferSize, maxBufferPoolSize, maxArrayLength & maxStringContentLength variables in your web.config to their max size.

The follow code shows you what the web.config basicHttpBinding section variables should be set to:


Published by

Alan Feekery

Developer, Gamer, Musician, Cyclist and big Motorsport fan... enjoys the odd cup of coffee :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s