Filezilla works for me, but I am unable to use the same credentials via FTPS client.

Oct 15, 2012 at 9:17 AM

I am connecting to one of our vendor's website via FileZilla. When I use the same set of credentials to login via the Windows FTP client (Command Line based) or FTPS, it gives me error code 530.

The FTP server has been setup to accept a clear text password. In FileZilla, this is how my log looks like:


Status:	Resolving address of
Status:	Connecting to *.*.*.*:21...
Status:	Connection established, waiting for welcome message...
Response:	220-Microsoft FTP Service
Response:	    ****************************
Response:	    ***             FTP SITE ***
Response:	    *** DO NOT LOG IN UNLESS ***
Response:	    *** YOU ARE AN AUTHORIZED***
Response:	    *** USER WITH PERMISSION ***
Response:	    *** TO ACCESS THIS SITE. ***
Response:	    *** YOUR IP ADDRESS HAS  ***
Response:	    *** BEEN RECORDED        ***
Response:	220 ****************************
Command:	USER MOD
Response:	331 Password required for MOD.
Command:	PASS ********
Response:	230 User MOD logged in.
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/MOD" is current directory.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (*,*,*,*,7,195).
Command:	LIST
Response:	125 Data connection already open; Transfer starting.
Response:	226 Transfer complete.
Status:	Directory listing successful

When I do this via FTPS, I keep getting an error. My code to do this via FTPS is

//Example 1
        new NetworkCredential("MOD",
                            "*******"), ESSLSupportMode.ClearText);
//Example 2
client.Connect("", 21, 
    new NetworkCredential("MOD",
                            "*******"), ESSLSupportMode.ClearText, null, null, 0, 0, 0, null, false);

I have tried both of these sample codes (one at a time) to connect to the vendor's ftp site. I am unable to connect. What should I do next?