【问题标题】:MaxReceivedMessageSize value allowed in WCF Test Client configuration .Net 4.5WCF 测试客户端配置.Net 4.5 中允许的 MaxReceivedMessageSize 值
【发布时间】: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。但是,我可以保留的最大尺寸是多少?请帮忙。

【问题讨论】:

标签: c# .net wcf


【解决方案1】:

您可以直接在 web.config 中更改 MaxReceivedMessagesSize,也可以使用 Microsoft 服务配置编辑器。 (Visual Studio -> 工具 -> WCF 服务配置编辑器)。

在此编辑器中,您转到 Bindings -> 您的 Binding,然后您可以更改 MaxReceivedMessagesSize 和您想要的其他大小(例如:1073741824)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-21
    • 1970-01-01
    • 1970-01-01
    • 2011-05-03
    • 1970-01-01
    • 2011-07-04
    相关资源
    最近更新 更多