I am trying to connect to a Siemens Switch/MSC in a mobile operator network. I have code sample in C# but it gives exception when i try to execute connect() statement. I am using edtFTPnet (for .net)
I can download the required files using windows ftp utility (command prompt). using ftp utility i simply login and give 'get TS.CPXX.WE1' and the file gets downloaded.
Following exception is observed when ftpObject.connect() is executed.
Command not implemented PRO01EL4 (code 502)
the code is here...
ftpConnection = new EnterpriseDT.Net.Ftp.FTPConnection();
ftpConnection.ServerAddress = ServerIP;
ftpConnection.UserName = UserName;
ftpConnection.Password = Password;
ftpConnection.LocalDirectory = Environment.CurrentDirectory;
ftpConnection.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.ACTIVE;
ftpConnection.AutoLogin = true;
[b]ftpConnection.Connect(); [/b]
ftpConnection.DownloadFile(fileName, RemoteFile);
when i try to login to this system using FileZilla it has the following log.
Status: Connecting to 10.175.20.1:21...
Status: Connection established, waiting for welcome message...
Response: 220 SERVICE READY FOR NEW USER. PRO02OC0
Command: USER FTRDONLY
Response: 331 USER NAME OKAY, NEED PASSWORD. PRO01US0
Command: PASS **********
Response: 230 USER LOGGED IN, PROCEED. AUTH0000
Command: SYST
Response: 502 COMMAND NOT IMPLEMENTED. PRO01EL4
Command: FEAT
Response: 500 SYNTAX ERROR, COMMAND UNRECOGNIZED. PRO01EL3
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 502 COMMAND NOT IMPLEMENTED. PRO01EL4
Error: Failed to retrieve directory listing
Any help ?