January 13, 2019

WCF Test Client - How to increase MaxReceivedMessageSize

The WCF Test Client shipped with Visual Studio, is useful tool to quickly test and check results for a WCF Service call. However I encounter a scenario where my service call is returning larger result-set that is exceeding the default message size of 65536, and it starts giving me 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 the last post Increase message size quota for incoming messages, we have seen how to increase the message size from client application's config file. But you might facing problem in searching for a way to configure message size for WCF Test Client when calling a service method. There is an option available to configure message size from WCF Test Client, but it seems to be slightly hidden, because this is not at very prominent place where user can find it easily.

After you Add Service in WCF Test Client, you can find there is a Config File node at the end of the service tree. Right click on Config File node, and select Edit with ScvConfigEditor from the context menu.

Edit with ScvConfigEditor

You will get the configuration editor dialog, just go to the Bindings node, expand it, and select the required binding settings. Here you can change the MaxReceivedMessageSize or any other settings you may need.

Edit with ScvConfigEditor Bidings

4 comments:

  1. The article that you have shared is useful, Thanks for share this post for us broken phone screen

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Here is a list of seo services do check it out, and let us know if you have any queries.

    ReplyDelete
  4. I tried the changes in local but if i re-run the applicaton changes are not there. Also i need to increase the size on the link also which is hosted on IIS

    ReplyDelete