我刚刚使用一台主机(本地计算机)安装并配置了AppFabric缓存集群。我使用SQL作为提供程序。
当我使用管理员权限启动Caching Administration Windows PowerShell时,我得到以下错误:
Use-CacheCluster : ErrorCode<ERRCAdmin040>:SubStatus<ES0001>:Failed to connect
to hosts in the cluster
At line:1 char:62
+ Import-Module DistributedCacheAdministration;Use-CacheCluster <<<<
+ CategoryInfo : NotSpecified: (:) [Use-CacheCluster], DataCacheE
xception
+ FullyQualifiedErrorId : Microsoft.ApplicationServer.Caching.DataCacheExc
eption,Microsoft.ApplicationServer.Caching.Commands.UseCacheClusterCommand当我打开DCacheAdministration.log时,它显示如下所示:
Host XXX is Reachable.,DistributedCache.CacheAdmin,Verbose,2013-5-2 13:54:06.042
Failed to read remote registry key from host XXX: Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCAdmin026>:SubStatus<ES0001>:Remote registry access failed on host XXX. Check if the required permissions are available and the host is not down. ---> System.ComponentModel.Win32Exception: The network path was not found at Microsoft.ApplicationServer.Caching.AdminApi.RemoteRegistry64.OpenRemoteConnection(String hostName) at Microsoft.ApplicationServer.Caching.AdminApi.RemoteRegistry64.OpenConnection(String hostName, String registryPath)at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)
--- End of inner exception stack trace ---
at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetRemoteRegistryKey(String hostName, Boolean writable)
at Microsoft.ApplicationServer.Caching.AdminApi.CacheAdmin.GetServerVersion(String hostName),DistributedCache.CacheAdmin,Error,2013-5-2 13:54:08.053远程注册表服务已启动。哪些账号需要在regedit.exe中拥有读权限?我已经为本地服务(远程注册表服务将其用作登录)和网络服务(我已将其用作缓存服务帐户)提供了权限。是否必须授予任何其他权限才能使注册表项可访问??或者我需要检查的其他东西是什么?
请帮帮忙
发布于 2015-01-27 08:31:43
我通过启用并运行远程注册表服务修复了同样的问题。我认为AppFabric试图使用域名操作注册表来连接到远程服务器(即本地机器)。
发布于 2013-05-03 03:54:58
在错误消息"Failed to read remote registry key from host XXX“中报告的主机名中,您究竟看到了什么。FQDN是本地计算机的计算机名称还是该计算机的名称,或者它是否指向完全不同的计算机?
如果它指向本地机器名或本地机器的FQDN,那么尝试在主机文件中为指向127.0.0.1的主机名添加一个条目,看看这是否有帮助。如果没有,那么尝试重新启动Remote Registry服务,然后从相同的PowerShell缓存管理窗口运行Restart-CacheCluster,看看这是否有帮助。
发布于 2013-05-03 13:19:20
它是FQDN。我还尝试编辑主机文件,并重新启动了服务和cachecluster,但也出现了同样的问题。
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
127.0.0.1 <My FQDN>https://stackoverflow.com/questions/16336299
复制相似问题