The following code returns the error "No such host is known":
evLog.WriteEntry("get ftp folder=" + site.SiteLocation + folder.FolderName);
FTPConnection ftp = new FTPConnection();
ftp.ServerAddress = site.SiteLocation + folder.FolderName;
ftp.UserName = site.UserName;
ftp.Password = site.Password;
ftp.Protocol = FileTransferProtocol.FTP;
ftp.ConnectMode = FTPConnectMode.PASV;
ftp.Connect();
I know the host works since I can connect with FileZilla, or by using the same site address, user name, and password with the FTPWebRequest net control. What am I missing?