powershell - 拒绝尝试从Powershell启动Appfabric缓存集群的访问

标签 powershell appfabric

我有一些使用appfabric的代码,并出现服务器不可用错误。按照http://msdn.microsoft.com/en-us/library/ff921031.aspx上的说明,我发现我的缓存群集已关闭。我以管理员身份打开了powershell并运行了Start-CacheCluster。几分钟后,我收到一条错误消息:

Start-CacheCluster : Could not start cluster: ErrorCode<ERRCAdmin025>:SubStatus
<ES0001>:Time-out occurred in starting the cluster.
At line:1 char:19
+ Start-CacheCluster <<<<
    + CategoryInfo          : NotSpecified: (:) [Start-CacheCluster], DataCach
   eException
    + FullyQualifiedErrorId : ERRCAdmin025,Microsoft.ApplicationServer.Caching
   .Commands.StartCacheClusterCommand

检查事件日志显示以下内容:
Service cannot be started. System.TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.ConfigManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Fabric.Common.ConsoleSink' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\System32\AppFabric\DistributedCacheService.exe.config' is denied. (C:\Windows\System32\AppFabric\DistributedCacheService.exe.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\System32\AppFabric\DistributedCacheService.exe.config' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBU...

曾经有更多AppFabric经验的人见过吗?

-谢谢

最佳答案

尝试MicrosoftWindowsApplication Server-System ServicesAdmin日志。有时,该日志会为您提供常规事件日志中不存在的更多信息。有关缓存集群监视的更多信息,请参见Health Monitoring Tools

关于你的问题。我唯一要说的是,启动缓存集群后,它将加载配置,并且由于失败,最终将使AppFabric Caching Service崩溃(您将在上述事件日志中看到该信息)。

确保已将AppFabric Caching Service配置为在有权访问配置文件DistributedCacheService.exe.config以及配置存储库(Velocity配置数据库或配置XML)的帐户下运行。

关于powershell - 拒绝尝试从Powershell启动Appfabric缓存集群的访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7339772/

相关文章:

windows - 通过 Get-WmiObject : Exception calling SetDefaultPrinter : Not Supported 设置默认打印机时出错

powershell - 如何使用powershell提取publickeytoken?

caching - 具有 Windows Server AppFabric 缓存的分布式锁服务

azure - Microsoft Azure Service Fabric SDK 和 Windows Azure 包 : Service Bus 1. 1

C# 和 powershell 多命令

powershell - Oh-my-posh 主题与 Powerline 字体和 ConEmu 无法正常工作

c# - Appfabric 缓存错误代码 <ERRCA0016> :SubStatus<ES0001>

wcf - Windows Workflow 4 中的人工事件支持

regex - 可选的非捕获组中的命名捕获组

c# - AppFabric 缓存 - 非常慢或配置错误?