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...