again here is the piece of code
FTP.RemoteHost = host
FTP.IsImplicitFTPS = True
FTP.ServerCompatibility = ProFTPClient.CompatibilityFlags.DisableDataSSLClosure
FTP.ServerValidation = ProFTPClient.ServerValidationType.None
FTP.Connect()
FTP.Auth()
FTP.Login(user, password)
FTP.ConnectMode = FTPConnectMode.PASV
FTP.TransferType = FTPTransferType.ASCII
Try
Dim files As Array = FTP.Dir(".", True)
Dim i As Integer = 0
While i < files.Length
Response.Write(files(i) & "<BR><BR><BR>")
i += 1
End While
Catch ex As Exception
Response.Write("ERROR" & ex.Message & "<BR>")
End Try
i've catched CommandSent and ReplyRecieved to capture FTP messages and I got the following
---> PBSZ 0
200 PBSZ=0
---> PROT P
200 PROT command successful.
---> USER dmpuser
331 Password required for dmpuser.
---> PASS ********
230 User dmpuser logged in.
---> TYPE A
200 Type set to A.
---> PASV
227 Entering Passive Mode (10,1,21,49,98,235)
ERROR Only changing from a normal connection to a secure connection is supported.
can you tell me what's wrong?
thanks