访问缓存数据时出错 [英] Error when accessing the cache data

查看:100
本文介绍了访问缓存数据时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经成功设置了我的缓存集群(或者看起来似乎如此),但现在每当我尝试从缓存集群中添加或检索某些内容时,我都会得到错误:


ErrorCode< ERRCA0017> ;:SubStatus< ES0001>:暂时失败。请稍后再试。


我可以成功实例化DataCacheFactory和DataCache对象但是每当我调用DataCache对象的add函数时,我都会收到此错误。我读过关于授予用户访问缓存的权限,所以我开始授予缓存服务使用的用户访问
(DOMAIN \ SERVERNAME $),但它没有解决问题。然后我尝试授予对我的域用户(我在开发计算机上登录的域)的访问权限,但是那里也没有运气......


我正在使用XML配置进行缓存我几乎直接从Microsoft站点复制的集群(在我的web.config文件中):


 <?  xml  版本  =  "   1.0  "  ?>  
< 配置 >
< configSections >
< 部分 name = " dataCacheClient " type = " Microsoft.ApplicationServer.Caching.DataCacheClientSection,Microsoft.ApplicationServer.Caching.Core,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35 " allowLocation = " true " allowDefinition = " 无处不在 " />
< dataCacheClient >
< 主机 >
< 主机 名称 = " SDPORTAILMTL03 " cachePort = " 22233 " />
< span style ="color:blue">< host name = " SDPORTAILMTL04 " cachePort = " 22233 " />
< / 主机 >
< span style ="color:blue">< / dataCacheClient >
< / 配置 >

解决方案

Phil,


嗨!对不起,你有更多的问题让这个工作。我在过去没有看到这是一个一致的错误,所以我将不得不给你一些尝试:


  1. 首先,对于Get-CacheHost,它是否将两个主机都显示为UP?
  2. 您的开发机器是否与两台主机不同?如果是这样,您是否在该计算机上安装了与在其他两个缓存主机上安装的RTM版本相同的RTM版本的AppFabric缓存客户端功能?然后你按照开发环境准备
    的步骤:
    http:// msdn.microsoft.com/en-us/library/ee790876.aspx
  3. 作为测试,如果您的开发机器是远程的,请尝试构建EXE并将其移动到其中一个缓存主机。在那里本地运行并显示某种类型的成功指示或异常消息以了解它是否有效。
  4. 您使用的是Windows防火墙还是其他防火墙?配置缓存主机时,您是否制定了防火墙规则以允许远程服务管理并允许通过防火墙访问缓存服务?

我有兴趣知道为什么你会一直得到这个临时失败的消息。我希望我能帮助你解决这个问题,让你和其他人了解可能的原因。


谢谢。


Jason Roth


Hi,

I've setup my cache cluster sucessfully (or so it seems) but now whenever I try to add or retreive something from the cache cluster, I'm getting the error:

ErrorCode<ERRCA0017>:SubStatus<ES0001>:There is a temporary failure. Please retry later.

I can sucessfully instantiate the DataCacheFactory and DataCache object but wehenever I call the add function of the DataCache object, I'm getting this error. I read about granting access to the user to the cache, so I started by granting access to the user that the cache service uses (DOMAIN\SERVERNAME$) but it did not solve the issue. I then tried granting access to my domain user (the domain with which I am logged on the development computer) but no luck there neither...

I'm using XML configuration for the cache cluster (in my web.config file) that I practically copied straight from the Microsoft site:

<?xml version="1.0"?>
<configuration>
	<configSections>
		<section name="dataCacheClient" type="Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" allowLocation="true" allowDefinition="Everywhere"/>
	<dataCacheClient>
		<hosts>
			<host name="SDPORTAILMTL03" cachePort="22233"/>
			<host name="SDPORTAILMTL04" cachePort="22233"/>
		</hosts>
	</dataCacheClient>
</configuration>

解决方案

Phil,

Hi! Sorry you're having more problems getting this working. I haven't seen this as a consistent error in the past, so I'm going to have to give you a few things to try:

  1. First, for Get-CacheHost, does it show both hosts as UP?
  2. Is your development machine a different machine than the two hosts? If so, did you install the AppFabric Cache Client feature on that machine with the same RTM version as you installed on the other two cache hosts? And then you followed the steps for preparing the dev environment: http://msdn.microsoft.com/en-us/library/ee790876.aspx.
  3. As a test, if your development machine is remote, try building an EXE and moving it to one of the cache hosts. Run it locally there and have some type of indication displayed of success or the exception message to know whether it works.
  4. Do you use the Windows Firewall or a different firewall? When you configured the cache hosts, did you make the firewall rules to allow remote service management and to allow the Caching Service access through the firewall?

I'd be interested to know why you're getting this temporary failure message consistently. I hope I can help you fix it both for you and for others to understand a possible cause.

Thanks.

Jason Roth


这篇关于访问缓存数据时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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