WCF MaxReceivedMessageSize未被接受

时间:2013-12-04 18:00:15

标签: c# wpf wcf web-config

尝试在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>

2 个答案:

答案 0 :(得分:0)

问题是app.config @nvoigt

中的客户端

答案 1 :(得分:0)

我之前遇到过这种类型的问题。我找到了解决方案,但非常奇怪。

我已从绑定标记中删除了名称属性,并从端点标记中删除了 bindingConfiguration 属性

此解决方案也提供 - Problem with large requests in WCF

相关问题