客户端缓存错误:ErrorCode< ERRCA0017&gt ;:SubStatus< ES0006> [英] Client Caching error: ErrorCode<ERRCA0017>:SubStatus<ES0006>

查看:142
本文介绍了客户端缓存错误:ErrorCode< ERRCA0017&gt ;:SubStatus< ES0006>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


尝试使用客户端缓存时出现以下错误:


ErrorCode< ERRCA0017> ;:SubStatus< ES0006>:存在暂时性故障。请稍后重试。 (一个或多个指定的缓存服务器不可用,这可能是由繁忙的网络或服务器引起的。请确保已为群集上的此客户端帐户授予安全权限
,并且允许AppFabric缓存服务通过防火墙所有缓存主机
请注意,我已设置防火墙规则以启用缓存,使用powershell命令use-cachecluster配置缓存,并可通过PowerShell访问缓存。


该机器是Windows 7,安装了AppFabric beta 2刷新版本。


客户端代码为:



 



 



列表 < DataCacheServerEndpoint >
servers =
new
列表 < DataCacheServerEndpoint >(1);


servers.Add(



 




new
DataCacheServerEndpoint " localhost"
22233));


 



 




DataCacheFactoryConfiguration
configuration =
new
DataCacheFactoryConfiguration ();


configuration.Servers = servers;



configuration.LocalCacheProperties =



 




new
DataCacheLocalCacheProperties ();


configuration.SecurityProperties =



 




new
DataCacheSecurity DataCacheSecurityMode 。无,
DataCacheProtectionLevel 。None);


 



 




DataCacheClientLogManager .ChangeLogLevel(System.Diagnostics。 TraceLevel 。Off); < font face ="Courier New"size ="4">


myCacheFactory =



 




new
DataCacheFactory (配置);
// ERROR HAPPENS HERE


非常感谢您的协助。


Danny。

解决方案


由于安全属性,您看到此错误客户端和服务器之间不匹配。


在您的客户端代码中,您禁用了安全性(Mode = None和PotectionLevel = None),而缓存服务器使用mode = Transport和PotectionLevel = EncryptAndSign (默认为Beta2Fresh位)。


执行以下任一操作:


1)在客户端代码中使用默认安全性即 configuration.SecurityProperties = new
DataCacheSecurity );


2) 禁用服务器上的安全性以匹配您现有的客户端代码。使用Powershell cmdlet
Set-CacheClusterSecurity -SecurityMode无-ProtectionLevel无 


谢谢


Shankar


 


Hi,

I'm getting the following error when trying to use a client cache:

ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts

Note that I have set the firewall rules to enable caching, configured the cache using powershell commands use-cachecluster and can access the cache via powershell.

The machine is Windows 7 with the AppFabric beta 2 refresh version installed.

The client code is:

 

 

List<DataCacheServerEndpoint> servers = new List<DataCacheServerEndpoint>(1);

servers.Add(

 

new DataCacheServerEndpoint("localhost", 22233));

 

 

DataCacheFactoryConfiguration configuration = new DataCacheFactoryConfiguration();

configuration.Servers = servers;

configuration.LocalCacheProperties =

 

new DataCacheLocalCacheProperties();

configuration.SecurityProperties =

 

new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None);

 

 

DataCacheClientLogManager.ChangeLogLevel(System.Diagnostics.TraceLevel.Off);

myCacheFactory =

 

new DataCacheFactory(configuration); // ERROR HAPPENS HERE

Would appreciate your assistance.

Danny.

解决方案

Hi,

You are seeing this error because of the security property mismatch between client and server.

In your client code you disabled the security (Mode=None and PotectionLevel=None) whereas the cache server uses mode=Transport and PotectionLevel=EncryptAndSign (default in Beta2Fresh bits).

Do either of the following:

1) In the client code use the default security i.e. configuration.SecurityProperties =new DataCacheSecurity();

2) Disable the security at server to match with your existing client code. Use Powershell cmdlet Set-CacheClusterSecurity -SecurityMode None -ProtectionLevel None 

Thanks

Shankar

 


这篇关于客户端缓存错误:ErrorCode&lt; ERRCA0017&gt ;:SubStatus&lt; ES0006&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆