I seem to be unable to get any listing from / of the FTP server. (FileZilla is showing the directories and files).
I got this code:
FtpClient ftpConn = new FtpClient();
ftpConn.Host = FtpServer;
ftpConn.Port = FtpPort;
ftpConn.Credentials = new System.Net.NetworkCredential(Username, Password);
ftpConn.SslProtocols = System.Security.Authentication.SslProtocols.Tls12;
ftpConn.EncryptionMode = FtpEncryptionMode.Implicit;
ftpConn.ValidateCertificate += new FtpSslValidation(Client_ValidateCertificate);
ftpConn.BulkListing = false;
//ftpConn.DataConnectionType = FtpDataConnectionType.AutoPassive;
ftpConn.Connect();
FtpListItem[] FtpFolders = null;
FtpFolders = ftpConn.GetListing(Folder);
But it doesn't work. I tried the FTP options but didn't get any result. Any more suggestions?