1

I'm getting message like this:

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 checked on net, not able to find the portion to chage in configuration file here (C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE). The file name and content is WcfTestClient.exe.config

 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
 <runtime>
   <DisableMSIPeek enabled="true"/>
 </runtime>
</configuration>

How can I change this to get it work. Please note that, My WCF application is working fine, when I have less output character and this WCF Test client is given by .Net framework.I found this: http://tzonsoftware.blogspot.in/2009/07/changing-wcf-test-client-configuration.html. But, what would be the max size I can keep? Please help.

AskMe
  • 2,195
  • 6
  • 39
  • 80
  • Right-click the service in the test client and click Configure... – CodeCaster Jul 28 '15 at 12:24
  • What should be the max size value I can keep? – AskMe Jul 28 '15 at 12:25
  • 3
    The max size is 2147483647, see http://stackoverflow.com/questions/19564047/wcf-the-maximum-message-size-quota-for-incoming-messages-65536-has-been-exceed but I suggest you also try to figure out what a sensible value here is rather than just max it out. – leon.io Jul 28 '15 at 12:33
  • possible duplicate of [WCF - How to Increase Message Size Quota](http://stackoverflow.com/questions/884235/wcf-how-to-increase-message-size-quota) – MickyD Jul 28 '15 at 13:53

1 Answers1

0

You can change the MaxReceivedMessagesSize directly in the web.config or you use the Microsoft Service Configuration Editor. (Visual Studio -> TOOLS -> WCF Service Configuration Editor).

In this editor you go to Bindings -> your Binding and then you can change the MaxReceivedMessagesSize and other size you want(Example: 1073741824).

naro
  • 408
  • 7
  • 16
  • Hmm, I don't see anything in the window, just File and Help menus and empty editor. Even when WCF Test Client is running. – Oak_3260548 Mar 17 '22 at 11:31