我为我的工作买了一台新笔记本电脑,并且正在考虑安装 Win8 CP 作为我的主要操作系统,我喜欢它,所以我尝试在 VM 中进行一些测试,看看 AppFabric 缓存是否可以在 Win8 CP 中工作。MS的官方回应是“Win8不支持AppFabric,我们会在Win8发布时告诉你如何运行它”当然这对我来说不是一个好的答案,所以我尝试了......但失败了......
在安装 .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>
版本信息答案根本不正确,因此创建新缓存可能会失败
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/drivers/etc/host 中的主机文件以将显式条目放置到 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 正式发布。