Wednesday, February 12, 2014

The maximum message size quota for incoming messages (65536) has been exceeded.(Error in WCF Test Client)

Sometimes when we invoke a method in WCF Test Client we get an error even though same restfull service when invoked in browser works fine.In WCF Test Client we are likely to get an error

"The maximum message size quota for incoming messages (65536) has been exceeded" after using the WCF Test Client utility to invoke a method on my service." 

There is nothing wrong with the service this is just the configuration change in WCF Test Client. In the wcf test client, after you add the service, you can notice there is a "config file" node at the end of the service tree: right click it and select "edit with SvcConfigEditor". You will get the exact configuration editor for the service side - just go to the binding settings and change the MaxReceivedMessageSize and save the changes.

Just put these values

maxBufferSize=”2147483647″
maxReceivedMessageSize=”2147483647″

No comments :

Post a Comment