本文介绍了"最大邮件大小配额传入消息(65536)已超过&QUOT ;.。即使设置更大的尺寸后,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图访问一个WCF服务从Windows窗体客户端应用程序。在服务器上我绑定的配置是这样的:
I am trying to access a WCF service from a Windows Forms client application. My binding config on server is this:
<bindings>
<customBinding>
<binding name="Wrabind" closeTimeout="00:05:00" openTimeout="00:05:00"
sendTimeout="00:25:00">
<textMessageEncoding />
<security authenticationMode="SecureConversation" includeTimestamp="true"
messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
<localClientSettings maxClockSkew="00:30:00" />
<localServiceSettings maxClockSkew="00:30:00" />
<secureConversationBootstrap messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
<localClientSettings maxClockSkew="00:30:00" />
<localServiceSettings maxClockSkew="00:30:00" />
</secureConversationBootstrap>
</security>
<httpTransport maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000"
allowCookies="true" maxBufferSize="20000000" />
</binding>
</customBinding>
</bindings>
正如你可以看到我已经设置了 maxReceivedMessageSize
20000000,但它仍然显示出的最大邮件大小配额传入消息(65536)已经被超过。
例外。我失去了一些东西?
As you can see I already set the maxReceivedMessageSize
to 20000000, but its still showing "The maximum message size quota for incoming messages (65536) has been exceeded."
exception. Am I missing something?
推荐答案
也许这个错误是来自客户端而不是服务器。确保同样的设置存在于客户端配置。
Maybe this error comes from the client and not the server. Make sure same setting exists on the client config.
这篇关于&QUOT;最大邮件大小配额传入消息(65536)已超过&QUOT ;.。即使设置更大的尺寸后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!