本文介绍了AppFabric 1.1和Windows 8 Consumer Preview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几个月我一直在与客户项目合作,这个项目使用了很多Windows AppFabric Cache。最近我们更新到了AppFabric缓存1.1,一切都工作得非常好,但是......

I've been working with a customer project in the last months and this project uses a lot Windows AppFabric Cache. Recently we updated to AppFabric cache 1.1 and everything was working amazingly fine, but...

我的笔记本电脑用于我的工作,并考虑安装Win8 CP作为我的主要操作系统,我喜欢它,所以我尝试在VM中进行一些测试,看看AppFabric缓存是否可以在Win8 CP中运行。 MS的官方回复是"Win8中不支持AppFabric
,我们会告诉你如何在Win8发布时运行它"当然这对我来说不是一个好的答案,所以我尝试了...并且失败了...

I got a new laptop for my job and was thinking about installing Win8 CP as my main operating system, I love it, so I tried to do some tests in a VM to see if AppFabric cache can work in Win8 CP. The official response from MS is "AppFabric is not supported in Win8 and we would tell you how to run it when Win8 is released" and of course that is not a nice answer for me, so I tried... and failed...

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

After installing .Net 3.5SP1 and latest updates AppFabric cache was installed and configured without any problem in my Win8 machine using my local user and a XML provider in a shared folder, I gave permissions and everything to that folder...

第一个问题是Cache管理员控制台每次打开它时都会回复此消息:

The first problem is that the Cache Administrator Console answer back with this message every time I open it:

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], DataCacheE
   xception
    + FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheExc
   eption,Microsoft.ApplicationServer.Caching.Commands.UseCacheClusterCommand

PS C:\Windows\system32>

但是我可以毫无问题地启动缓存集群,但是我从缓存集群中发现了一些奇怪的答案:

But I can start the cache cluster without any problem, but I found sort of weird the answer from the cache cluster:

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>

查看版本信息?看起来有些事情是错的,是的,出了点问题...我无法创建缓存:

See the version info? looks like something is wrong, and yes, something is wrong... I cannot create a cache:

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>

几乎就是所有......

And pretty much that's all...

我尝试了我在互联网上找到的一切:

I tried everything I could find in the internet:


  • 启动远程注册表服务
  • 修改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正式发布。

And still getting the same problem... I have no idea where to start or continue finding the problem... I would really appreciate any help, and yes, would be really really hard for me to wait until Win8 official release.

推荐答案

更好地使远程注册表服务自动化,而不是手动。

Better make the remote registry service as automatic, instead of manual.

希望它有所帮助!


这篇关于AppFabric 1.1和Windows 8 Consumer Preview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 16:26