gpt4 book ai didi

c# - Appfabric 缓存错误代码 :SubStatus

转载 作者:行者123 更新时间:2023-11-30 18:40:02 27 4
gpt4 key购买 nike

我有以下代码:

static void Main(string[] args)
{

var config = new DataCacheFactoryConfiguration()
{

Servers = new List<DataCacheServerEndpoint>
{
new DataCacheServerEndpoint("192.168.129.118", 22233)
}
,
TransportProperties = new DataCacheTransportProperties()
{
ConnectionBufferSize = 99999,
ChannelInitializationTimeout = TimeSpan.FromSeconds(2),
MaxBufferPoolSize = 99999,
MaxBufferSize = 99999,
ReceiveTimeout = TimeSpan.FromSeconds(2)
},
SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.Transport, DataCacheProtectionLevel.EncryptAndSign),

};

DataCacheFactory factory = new DataCacheFactory(config);
var cache = factory.GetCache("Maestro_del_mambo");
cache.Put("123", "que tal andamios");
var cities = cache.Get("123");
Console.Read();
}

执行它时,它在 cache.put 和 cache.get 上失败,并显示以下错误消息:

ErrorCode<ERRCA0016>:SubStatus<ES0001>:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown.

服务器端缓存集群已授予我的客户帐户,所以......我们做错了什么?

最佳答案

有一篇有用的文章here在 AppFabric 博客上讨论了这个错误,并提供了一些可能对您有帮助的诊断和解决方法,特别是当您通过 IP 地址而不是名称引用缓存服务器时。

关于c# - Appfabric 缓存错误代码 <ERRCA0016> :SubStatus<ES0001>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8925189/

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