Login authentication failed

May 30, 2013 at 6:33 AM
Edited May 30, 2013 at 7:02 AM
Hi.
I have successfully uploaded to one server but another one is returning:
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 09:23. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
USER XXXXX
331 User XXXXX OK. Password required
PASS <omitted>
530 Login authentication failed

Here is the code:
static bool myFunc(string filename)
        {
            try
            {
                using (FtpClient conn = new FtpClient())
                {
                    string host = Properties.Resources.host;
                    string usr = Properties.Resources.user;
                    string pwd = Properties.Resources.pwd;

                    conn.Host = host;
                    conn.Credentials = new NetworkCredential(usr, pwd);
                    conn.EnableThreadSafeDataConnections = false;
                    conn.DataConnectionType = FtpDataConnectionType.PASV;
                    conn.SetDataType(FtpDataType.ASCII);
                    

                    using (Stream istream = new FileStream(Properties.Resources.OrderFilePath + filename, FileMode.Open, FileAccess.Read),
                        ostream = conn.OpenWrite(Properties.Resources.path + filename))
                    {
                        byte[] buf = new byte[8192];
                        int read = 0;

                        try
                        {
                            while ((read = istream.Read(buf, 0, buf.Length)) > 0)
                            {
                                ostream.Write(buf, 0, read);
                            }
                        }
                        catch (Exception ex)
                        {
                            Functions.WriteToLog(MethodBase.GetCurrentMethod().Name, ex.Message, Functions.LogFile);
                            Functions.errMsg = ex.Message;
                            Functions.alertWithMail();
                            return false;
                        }
                        finally
                        {
                            ostream.Close();
                            istream.Close();
                        }
                        Functions.WriteToLog(MethodBase.GetCurrentMethod().Name, "Uploaded " + filename, Functions.LogFile);
                        return true;
                    }

                } // using FtpClient
            }
            catch (Exception ex)
            {
                Functions.WriteToLog(MethodBase.GetCurrentMethod().Name, ex.Message, Functions.LogFile);
                Functions.errMsg = ex.Message;
                Functions.alertWithMail();
                return false;
            }
        } // myFunc
Is there a way to see what the password string looks like?
Connecting via FileZilla with the same credentials is working fine.

Any help/ideas greatly appreciated.

//Ecco
May 30, 2013 at 10:25 AM
Ooops.
My bad. Late night desperation made me overlook an error in resources.
Never mind this.

//Ecco