2012-04-06 66 views
5

我为我的工作得到了一台新笔记本电脑,并且正在考虑将Win8 CP作为我的主操作系统,我喜欢它,所以我试图在虚拟机上做一些测试以查看AppFabric缓存可以在Win8 CP中工作。 MS的官方回应是“Win8中不支持AppFabric,我们会告诉你如何在Win8发布时运行它”,当然这对我来说不是一个好的答案,所以我尝试了......并且失败了......AppFabric 1.1和Windows 8消费者预览版

安装.Net 3.5SP1和最新更新后安装并配置了AppFabric缓存,在我的Win8机器上使用我的本地用户和共享文件夹中的XML提供程序没有任何问题,我给了该文件夹的权限和一切......

的第一个问题是,高速缓存管理员控制台每次我打开它的时候回嘴此消息:

Use-CacheCluster : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect 
to hosts in the cluster At line:1 char:46 
    + Import-Module DistributedCacheAdministration;Use-CacheCluster 
    +            ~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [Use-CacheCluster], DataCacheException 
    + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheException,Microsoft.ApplicationServer.Caching.Commands.UseCacheClusterCommand 

PS C:\Windows\system32> 

嗯,看上去就像是不正确的......让我们尝试启动缓存集群

PS C:\Windows\system32> start-cachecluster 

HostName : CachePort Service Name   Service Status Version Info 
-------------------- ------------   -------------- ------------ 
win8:22233   AppFabricCachingService UP    0 [0,0][0,0] 


PS C:\Windows\system32> 

版本信息的答案是不正确所有,所以problably创建一个新的缓存会失败

PS C:\Windows\system32> new-cache IPE 
New-Cache : Object reference not set to an instance of an object. 
At line:1 char:1 
+ new-cache IPE 
+ ~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [New-Cache], NullReferenceExce 
    ption 
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Applicat 
    ionServer.Caching.Commands.NewCacheCommand 

PS C:\Windows\system32> 

和几乎仅此而已......

我什么都试过了我能找到在互联网上:

  • 启动远程
  • 注册表服务修改在Windows主机文件/ SYSTEM32 /驱动器的/ etc /主机放置一个明确的条目,为localhost和我的机器名
  • 检查权限
  • 安装更新
  • 打开防火墙规则

(对于防火墙规则,我想是这样的)

netsh advfirewall firewall set rule group="Windows Server AppFabric: AppFabric Caching Service" new enable=Yes 
netsh advfirewall firewall set rule name="Remote Service Management (RPC)" profile=domain new enable=Yes 
netsh advfirewall firewall set rule name="Remote Service Management (RPC-EPMAP)" profile=domain new enable=Yes 
netsh advfirewall firewall set rule name="Remote Service Management (NP-In)" profile=domain new enable=Yes 

并且仍然遇到同样的问题......我不知道从哪里开始或继续解决问题......我真的很感谢任何帮助,对,我真的很难等到Win8正式发布。

回答

9

如果未启动,请启动远程注册表服务。 AppFabric甚至使用此服务连接到本地机器 link