Tôi có một số mã sử dụng appfabric và đã gặp lỗi máy chủ không khả dụng. Làm theo hướng dẫn tại http://msdn.microsoft.com/en-us/library/ff921031.aspx Tôi thấy rằng cụm bộ nhớ cache của tôi đã ngừng hoạt động. Tôi đã mở PowerShell với tư cách quản trị viên và chạy Start-CacheCluster. Sau một vài phút, tôi nhận được một thông báo lỗi:Truy cập bị từ chối cố gắng bắt đầu cụm bộ nhớ cache appfabric từ powershell
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
Kiểm tra các bản ghi sự kiện cho thấy điều này:
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...
Có ai có kinh nghiệm AppFabric hơn thấy điều này trước đây chưa?
-Cảm ơn
Cấp quyền tài khoản dịch vụ cho tệp DistributedCacheService.exe.config nằm trong \ Program Files \ AppFabric 1.1 cho Windows Server \ lừa cho tôi. Cảm ơn Dave! –