我正在尝试从 Windows 窗体客户端应用程序访问 WCF 服务。我在服务器上的绑定配置是这样的:
<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,但仍然显示"The maximum message size quota for incoming messages (65536) has been exceeded."
异常。我错过了什么吗?