【发布时间】:2015-10-18 23:44:35
【问题描述】:
我收到这样的消息:
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 测试客户端由 .Net 框架提供时,我的 WCF 应用程序运行良好。我发现:http://tzonsoftware.blogspot.in/2009/07/changing-wcf-test-client-configuration.html。但是,我可以保留的最大尺寸是多少?请帮忙。
【问题讨论】:
-
在测试客户端中右键服务,点击配置...
-
我可以保留的最大尺寸值应该是多少?
-
最大尺寸为 2147483647,请参阅 stackoverflow.com/questions/19564047/… 但我建议您也尝试弄清楚这里的合理值是什么,而不仅仅是将其最大化。