Home Forums .NET libraries Xceed SFTP/FTP for .NET Special characters in password

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

    Hello

    I’m getting problems when i logon to FTP-servers with a password containing special characters. (For example åäö).
    The code below generates an exception with the errormessage “NOT LOGGED IN. (replycode 530)”

    Is there someway to avoid this problem?

    Best regards Fredrik

    Xceed.Ftp.Licenser.LicenseKey = “XXXX”;
    Xceed.Ftp.FtpClient ftp = new Xceed.Ftp.FtpClient();

    http://ftp.Connect(“XXX.XXX.XXX.XXX”, 21);
    try
    {

    http://ftp.Login(“username”, “åäö”);

    }
    catch (Exception exc)
    {
    MessageBox.Show(exc.Message);
    }

    http://ftp.ChangeCurrentFolder(“MYFOLDER”);

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

    Xceed Support
    Member
    Post count: 5658

    What type of server are you using? We noticed some issues regarding the Login procedure with IIS 7.

    Could you try to change the Encoding also, to see if it resolve your problem?

    e.g.,
    http://ftp.Encoding = Encoding.Default;

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

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