gpt4 book ai didi

c# - "The maximum message size quota for incoming messages (65536) has been exceeded."。即使在设置更大的尺寸之后

转载 作者:太空狗 更新时间:2023-10-29 21:17:51 24 4
gpt4 key购买 nike

我正在尝试从 Windows 窗体客户端应用程序访问 WCF 服务。我在服务器上的绑定(bind)配置是这样的:

 <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)。”异常(exception)。我错过了什么吗?

最佳答案

也许这个错误来自客户端而不是服务器。确保客户端配置中存在相同的设置。

关于c# - "The maximum message size quota for incoming messages (65536) has been exceeded."。即使在设置更大的尺寸之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18430573/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com