title: Copying a file, using impersonator, throw an Unauthorized Access Exception
body: <p>I am using <a href="http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User" rel="nofollow">this Impersonator class</a> to copy files to a Directory with access rights.</p>
  
  <pre><code>public void CopyFile(string sourceFullFileName,string targetFullFileName)
  {
      var fileInfo = new FileInfo(sourceFullFileName);
  
      try
      {
          using (new Impersonator("username", "domain", "pwd"))
          {
              // The following code is executed under the impersonated user.
              fileInfo.CopyTo(targetFullFileName, true);
          }
      }
      catch (IOException)
      {
          throw;
      }
  }
  </code></pre>
  
  <p>This code work almost perfectly.
  The problem I am facing is when the sourceFullFileName is a file located in folder like <strong><em>C:\Users\username\Documents</em></strong> where the original user has access but the impersonator not. </p>
  
  <p>The exception I am getting while trying to copy a file from such location is:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
    Additional information: Access to the path 'C:\Users\username\Documents\file.txt' is denied.</p>
  </blockquote>