[英]WCF MaxReceivedMessageSize not being accepted
Trying to set MaxReceivedMessageSize in the web.config but it keeps telling me it's set to the default 尝试在web.config中设置MaxReceivedMessageSize,但它一直告诉我将其设置为默认值
InnerException = {"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."} InnerException = {“已超过传入消息的最大消息大小配额(65536)。要增加配额,请在适当的绑定元素上使用MaxReceivedMessageSize属性。”}
<bindings>
<wsHttpBinding>
<binding name="TransportSecurity" maxReceivedMessageSize="10242880">
<readerQuotas maxArrayLength="10242880"/>
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
问题是app.config @nvoigt中的客户端
I faced this type of issue before. 我以前遇到过这类问题。 I found the solution, but very strange. 我找到了解决方案,但很奇怪。
I have removed the name attribute from binding tag and the bindingConfiguration attribute from endpoint tag it all worked. 我已经从绑定标记中删除了name属性,并从终结点标记中删除了bindingConfiguration属性,它们全部起作用。
This solution is also provided on - Problem with large requests in WCF 在以下方面也提供了此解决方案-WCF中的大请求问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.