Home Forums .NET libraries Xceed SFTP/FTP for .NET uploading a test file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20702 |

    I just downloaded this component’s trial license and I am testing a very simple, slimmed down ftp process. Here is my test code for sending a file to the desired server…

    Xceed.Ftp.Licenser.LicenseKey = “SAMPLE-APPLICATION-KEY”;

    FtpClient ftp = new FtpClient();
    http://ftp.Connect(“xxxxxxx”);
    if (ftp.Connected)
    {
    http://ftp.Login();
    http://ftp.SendFile( @”c:\test.txt”);
    }
    http://ftp.Disconnect();

    When I debug this, I get an error message stating…”text.txt: Access is denied, reply code 550

    When I look at the reply code on the web, I get descriptions related to access problems, however I have anonymous access setup on the ftp server. Any ideas what could cause this, I’m guessing I don’t have sufficient code.

    Thanks in advance

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Chad (had 2485 views)

    User (Old forums)
    Member
    Post count: 23064

    You probably don’t have write access to that file. Most FTP servers give anonymous users only read access.

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by Martin (had 3142 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.