我收到这样的消息:
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.
我在网上查了一下,无法在这里找到配置文件中的部分(C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE)。文件名和内容为WcfTestClient.exe.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<DisableMSIPeek enabled="true"/>
</runtime>
</configuration>
如何更改此功能以使其正常工作。请注意,当我的输出字符较少时,我的WCF应用程序工作正常,此.WCF测试客户端由.Net framework提供。我发现:http://tzonsoftware.blogspot.in/2009/07/changing-wcf-test-client-configuration.html。但是,我可以保留的最大尺寸是多少?请帮忙。
答案 0 :(得分:0)
您可以直接在web.config中更改MaxReceivedMessagesSize,也可以使用Microsoft服务配置编辑器。 (Visual Studio - &gt; TOOLS - &gt; WCF服务配置编辑器)。
在此编辑器中,您将转到Bindings - &gt;您的Binding然后您可以更改MaxReceivedMessagesSize和您想要的其他大小(例如:1073741824)。