loFtpWebRequest = System.Net.FtpWebRequest.Create(New Uri(lcURI)) loFtpWebRequest.Credentials = New System.Net.NetworkCredential(cUsername, cPassword) loFtpWebRequest.Method = System.Net.WebRequestMethods.Ftp.ListDirectoryDetailsIf the client installs a FTP SSL certificate, then, the following would work:
loFtpWebRequest = System.Net.FtpWebRequest.Create(New Uri(lcURI)) loFtpWebRequest.Credentials = New System.Net.NetworkCredential(cUsername, cPassword) loFtpWebRequest.Method = System.Net.WebRequestMethods.Ftp.ListDirectoryDetails loFtpWebRequest.EnableSsl = lSSLBut, I have a situation where the client has installed a FTP SSL certificate but under https. So, I thought by changing the lcURI to start with https:// instead of ftp:// would do. But, that gives an error: