title: How to upload a file (using FTP) to a password protected folder in C#?
body: <p>I have password-protected a folder on my web server using CPanel (HTTP?). I am trying to upload a file via FTP in C#, but I keep getting this error:</p>
  
  <pre><code>The remote server returned an error: (553) File name not allowed.
  </code></pre>
  
  <p>When I use the same code to upload to a non-password protected folder I don't get any errors. There is nothing wrong with the file name as far as I can tell. </p>
  
  <p>So what would the problem be? How do I supply credentials to the password-protected folder (not talking about the FTP credentials, because obviously those are authenticating properly if a 553 error code is being returned)?</p>