Appfabric 缓存错误代码:SubStatus

发布于 2024-12-27 23:08:27 字数 1308 浏览 1 评论 0 原文

我有以下代码:

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:SubStatus:连接已终止, 可能是由于服务器或网络问题或序列化对象大小大于 服务器上的最大缓冲区大小。请求的结果未知。

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

I have the following code:

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();
      }

When executing it it fails on the cache.put and cache.get with the following error message:

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.

The server side cache cluster has granted my client account so.... What are we doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

就是爱搞怪 2025-01-03 23:08:27

有一个有用的部分 此处 讨论了此错误以及一些可能对您有所帮助的诊断和解决方法,特别是当您通过 IP 地址引用缓存服务器时而不是名字。

There's a useful piece here on the AppFabric blog that talks about this error with some diagnosis and workarounds which might be helpful for you, particularly as you reference your cache server by IP address and not name.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文