title: ASP.NET Unauthorized access when downloading from fTP
body: <p>My code can be found here <a href="https://stackoverflow.com/questions/3604864/c-asp-net-ftp-error">c# asp.net FTP Error</a>
  I am trying to download a file from an FTP server when I try to download it it says I do not have access I have been googling this all morning and have not had any luck.  I went to the designated folder and added Everyone with full permissions hoping I was missing a user and that did not work.  I tried giving full permissions to myself, Anonymous user, network service, and a few other users that I have found.  I have tried using </p>
  
  <pre><code>&lt;identity impersonate="true" /&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;identity impersonate="true" userName="myfullusername" password="mypassword"/&gt;
  </code></pre>
  
  <p>I am still not having any luck the full error I get is:</p>
  
  <p>System.UnauthorizedAccessException: Access to the path 'C:\Users\myname\Documents' 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_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)</p>
  
  <p>any help I get is greatly appreciated Thank you all.</p>