Home > WCF > WCF size quota exceeded

WCF size quota exceeded

2013/03/29

While testing a WCF service with the WCF Test client can happens this 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.”

In order to increase this quota must be changed the configuration for the web service.

Expanding the project node there is a Config file:


Right clicking the Config file it is possible to access the configuration:


Then appears the configuration, here double click the Binding:


The two values in yellow are the ones that we need to change , it is requested that both are changed and are equals, so we can add for example zeroes in front of 65535 until trying the method the error is not given.

Obviously is better to provide test values that will return a limited range of data, anyway.


There is the menu for Save , in any case closing this window is requested to save.


Returning to the Wcf Test Client is requested to reload the configuration ,


and if there aren’t othe problems the WCF service should work.

If the method return a data table you will see


Clicking on “View…” appears a button with “…” as caption


By clicking this button is showed the table.

Advertisements
Categories: WCF
%d bloggers like this: