Appfabric 缓存错误代码:SubStatus
我有以下代码:
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 :连接已终止, 可能是由于服务器或网络问题或序列化对象大小大于 服务器上的最大缓冲区大小。请求的结果未知。
服务器端缓存集群已授予我的客户端帐户,所以......我们做错了什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个有用的部分 此处 讨论了此错误以及一些可能对您有所帮助的诊断和解决方法,特别是当您通过 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.