我有一些使用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经验的人见过吗?
-谢谢
最佳答案
尝试Microsoft
,Windows
,Application Server-System Services
和Admin
日志。有时,该日志会为您提供常规事件日志中不存在的更多信息。有关缓存集群监视的更多信息,请参见Health Monitoring Tools。
关于你的问题。我唯一要说的是,启动缓存集群后,它将加载配置,并且由于失败,最终将使AppFabric Caching Service崩溃(您将在上述事件日志中看到该信息)。
确保已将AppFabric Caching Service配置为在有权访问配置文件DistributedCacheService.exe.config
以及配置存储库(Velocity配置数据库或配置XML)的帐户下运行。
关于powershell - 拒绝尝试从Powershell启动Appfabric缓存集群的访问,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7339772/