When i connect to an Sun Solaris FTP Server i got an error message: 550 /*: No such file or directory. Connects to Microsoft IIS FTP are ok.
Here is the code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Ftp As New EnterpriseDT.Net.Ftp.FTPConnection
Dim log As Logger = Logger.GetLogger(GetType(Form1))
Logger.CurrentLevel = Level.DEBUG
log.AddAppender(New FileAppender("d:\test_ftp.log"))
Ftp.Timeout = 120
Ftp.ConnectMode = EnterpriseDT.Net.Ftp.FTPConnectMode.PASV
Ftp.ServerAddress = "x.x.x.x"
Ftp.ServerPort = "21"
Ftp.UserName = "x"
Ftp.Password = "x"
Dim files() As String
Try
Ftp.Connect()
files = Ftp.GetFiles("/")
Ftp.UploadFile("d:\test.txt", "test.txt")
Catch ex As Exception
MsgBox(ex.Message)
End Try
Ftp.Close()
End Sub
Here is the Debug-Log:
SUN OS:
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 15 Dez 2005 11:08:14.254 : Connecting to x.x.x.x:21
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.434 : 220 x FTP server ready.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.434 : ---> USER x
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.454 : 331 Password required for x.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.454 : ---> PASS ********
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.474 : 230 User x logged in. Access restrictions apply.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.474 : ---> TYPE I
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.474 : 200 Type set to I.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.484 : ---> PWD
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.484 : 257 "/" is current directory.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.494 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.494 : 227 Entering Passive Mode (x,x,x,x,211,3)
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.494 : ---> NLST /
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:14.494 : 550 /*: No such file or directory.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:15.235 : ---> QUIT
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:15.235 : 221-You have transferred 0 bytes in 0 files.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:15.245 : 221-Total traffic for this session was 349 bytes in 0 transfers.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:15.245 : 221-Thank you for using the FTP service on x.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:08:15.245 : 221 Goodbye.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 15 Dez 2005 11:08:15.285 : Transferred 0 bytes to remote host
MS-IIS-FTP:
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 15 Dez 2005 11:10:11.893 : Connecting to x.x.x.x:2121
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:11.953 : 220 Microsoft FTP Service
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:11.963 : ---> USER x
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.003 : 331 Password required for x.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.003 : ---> PASS ********
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.013 : 230 User x logged in.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.013 : ---> TYPE I
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.013 : 200 Type set to I.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.023 : ---> PWD
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.023 : 257 "/" is current directory.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.033 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.033 : 227 Entering Passive Mode (x,x,x,x,6,119).
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.073 : ---> NLST /
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.073 : 125 Data connection already open; Transfer starting.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.344 : 226 Transfer complete.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 15 Dez 2005 11:10:12.344 : Found 1 listing lines
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.344 : ---> PASV
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.394 : 227 Entering Passive Mode (x,x,x,x,6,120).
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.554 : ---> STOR .test.txt
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.574 : 125 Data connection already open; Transfer starting.
DEBUG [EnterpriseDT.Net.Ftp.FTPClient] 15 Dez 2005 11:10:12.574 : Transferred 4 bytes to remote host
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.674 : 226 Transfer complete.
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.985 : ---> SIZE .test.txt
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.995 : 213 4
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:12.995 : ---> QUIT
DEBUG [EnterpriseDT.Net.Ftp.FTPControlSocket] 15 Dez 2005 11:10:13.005 : 221