【发布时间】:2013-12-04 18:00:15
【问题描述】:
试图在 web.config 中设置 MaxReceivedMessageSize 但它一直告诉我它已设置为默认值
InnerException = {"已超出传入消息的最大消息大小配额 (65536)。要增加配额,请使用相应绑定元素的 MaxReceivedMessageSize 属性。"}
<bindings>
<wsHttpBinding>
<binding name="TransportSecurity" maxReceivedMessageSize="10242880">
<readerQuotas maxArrayLength="10242880"/>
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
【问题讨论】:
-
你确定是服务端?客户端有相同的设置...
-
提供完整的或至少提供使用此绑定的端点标记。有可能这个绑定没有被使用并采用默认值..
-
@nvoigt 它是客户端。我什至没有想到这一点
标签: c# wpf wcf web-config