Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.2k views
in .NET FTP by (120 points)
My task is to rean an XML file from an ftps server which is login protected.
here is my code...

Dim objftp As New FTPClient()
objftp.RemoteHost = "ftpaddress"
objftp.Connect()
objftp.ConnectMode = FTPConnectMode.PASV
objftp.Timeout = 200
objftp.Login("dba", "ftp")

If objftp.Connected = True Then
Label1.Text = "Yes Conencted"
Dim red As New System.Xml.XmlTextReader("ftp://ftpaddress/cdr_log.xml")
While red.Read()

End While

End If

when i run this code i get an error as "The remote server returned an error: (530) Not logged in. " and points the erro ar the statememnt...While red.Read().

However if i set the ftp server to accept annonymous user then above code works (of couse i remove the required username and password).

can anyone help me with this. I need to accees process the xml file in ftps erver which is password protected.

thanks in advance...

1 Answer

0 votes
by (162k points)
Can you clarify if you are connecting to an FTPS server (secure FTP over SSL) or an FTP server?

Categories

...