title: Getting access denied trying to start appfabric cache cluster from powershell
body: <p>I have some code that uses appfabric and was getting server unavailability errors. Following the instructions at <a href="http://msdn.microsoft.com/en-us/library/ff921031.aspx">http://msdn.microsoft.com/en-us/library/ff921031.aspx</a> I found that my cache cluster was down. I opened up powershell as an administrator and ran Start-CacheCluster. After a few minutes I receive an error message:</p>
  
  <pre><code>Start-CacheCluster : Could not start cluster: ErrorCode&lt;ERRCAdmin025&gt;:SubStatus
  &lt;ES0001&gt;:Time-out occurred in starting the cluster.
  At line:1 char:19
  + Start-CacheCluster &lt;&lt;&lt;&lt;
      + CategoryInfo          : NotSpecified: (:) [Start-CacheCluster], DataCach
     eException
      + FullyQualifiedErrorId : ERRCAdmin025,Microsoft.ApplicationServer.Caching
     .Commands.StartCacheClusterCommand
  </code></pre>
  
  <p>Checking the event logs reveals this:</p>
  
  <pre><code>Service cannot be started. System.TypeInitializationException: The type initializer for 'Microsoft.ApplicationServer.Caching.ConfigManager' threw an exception. ---&gt; System.TypeInitializationException: The type initializer for 'Microsoft.Fabric.Common.ConsoleSink' threw an exception. ---&gt; System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---&gt; 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) ---&gt; 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...
  </code></pre>
  
  <p>Has anyone with more AppFabric experience seen this before?</p>
  
  <p>-Thanks</p>