title: UnauthorizedAccessException when trying to access files
body: <p>New to C#/VS, trying to get a listing of files, feel like this has a simple answer but can;t find.</p>
  
  <p>Basically, wanting to get a file listing, tried various methods but for simplicity, why does</p>
  
  <pre><code>var f = Directory.GetFiles(@"C:\");
  </code></pre>
  
  <p>returns </p>
  
  <blockquote>
    <p>System.UnauthorizedAccessException: 'Access to the path 'C:\' is
    denied.'</p>
  </blockquote>
  
  <p>Tried running VS as administator, tried on sub folders, tried with sub folders having Everyone with full control permission. Same results.</p>