访问AppFabric Cache时出错

时间:2012-04-04 12:05:49

标签: caching appfabric

我试图使用MVC asp.net项目使用IIS7运行Appfabric Cache。 在共享目录中使用XML配置提供程序。

使用cassini webserver(我的本地管理员帐户)时,我可以访问AppFabric Cache。

当使用IIS(“ApplicationPoolIdentity”)时,我无法使其工作,并且我收到无法连接到主机的标准消息。

我曾尝试向不同的用户(APPPOOL \ name,NETWORKservice,Everyone等)授予对缓存的访问权限,但每次都会收到此null异常。

  

PS C:> Grant-CacheAllowedClientAccount“Everyone”

     

Grant-CacheAllowedClientAccount:未将对象引用设置为的实例      宾语。      在行:1字符:32      + Grant-CacheAllowedClientAccount<<<<大家      + CategoryInfo:未指定:(:) [Grant-CacheAllowedClientAccou      nt],NullReferenceException + FullyQualifiedErrorId:
     System.NullReferenceException,Microsoft.Applicat      ionServer.Caching.Commands.GrantCacheAllowedClientAccountCommand

我有两台几乎相同的开发者机器使用win7 x64(域连接),两台计算机上的错误相同。

但是在我的家用电脑(不是域连接)上,它按预期工作,具有相同的安装设置,相同的共享目录。

到目前为止我做了什么:

  • 重新安装两次appfabric缓存
  • 重新配置缓存以使用其他目录
  • 设置配置目录共享,对Everyone的完全访问权限
  • 目录的安全权限,对Everyone的完全访问权限。

有没有办法更深入地调试此错误消息或修复它的解决方案?

Error from appfabric cache powershell

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <configSections>
   <section name="dataCache"     
     type="Microsoft.ApplicationServer.Caching.DataCacheSection,
     Microsoft.ApplicationServer.Caching.Core" />
</configSections>
<dataCache size="Small">
 <caches>
   <cache consistency="StrongConsistency" name="default" minSecondaries="0">
     <policy>
       <eviction type="Lru" />
       <expiration defaultTTL="10" isExpirable="true" />
   </policy>
  </cache>
 </caches>
 <hosts>
   <host replicationPort="22236" arbitrationPort="22235" clusterPort="22234"
     hostId="1556989554" size="3003" leadHost="true" account="DOM\vitcpu7$"
     cacheHostName="AppFabricCachingService" name="vitcpu7.office.domain.se"
     cachePort="22233" />
</hosts>
<deploymentSettings>
  <deploymentMode value="RoutingClient" />
</deploymentSettings>
</dataCache>
</configuration>

3 个答案:

答案 0 :(得分:10)

这是因为它是在域环境中设置的,而“远程注册表”服务未启动。由于我的家用计算机在工作组中,不需要“远程注册表”启动它的组合,哪个AppFabric缓存需要这个来在powershell中进行大多数更改。

More information at msdn social

答案 1 :(得分:1)

同意Kiteloop,需要启动“远程注册表”并以管理员身份运行“缓存Admin Powershell Windows”。

答案 2 :(得分:0)

对于内置帐户,只需使用此格式的命令

即可

Grant-CacheAllowedClientAccount -Account“DOMAIN1 \ Server1 $”

此MSDN链接的更多信息http://msdn.microsoft.com/en-us/library/ff921012.aspx

相关问题