私はappfabricを使用し、サーバが利用できないというエラーが発生しているコードをいくつか持っています。 http://msdn.microsoft.com/en-us/library/ff921031.aspxの指示に従って、キャッシュクラスタがダウンしていることがわかりました。私は管理者としてPowerShellを開き、Start-CacheClusterを実行しました。数分後、私はエラーメッセージが表示されます。powershellからappfabricキャッシュクラスタを起動しようとするとアクセスが拒否されました
は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の経験を持つ誰もが前にこれを見ている:
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
イベントログを確認するには、この明らかに?
-Thanks
Windows Server用\ Program Files \ AppFabric 1.1にあるDistributedCacheService.exe.configファイルにサービスアカウントのアクセス許可を与える私のためのトリック。ありがとうDave! –