ERROR:
Unable to cast object of type 'EnterpriseDT.Net.Ftp.FTPClient' to type 'EnterpriseDT.Net.Ftp.ExFTPClient'.
Why is it trying to create a secure connection? (ExFTPClient) I just want simple FTP connection....
VERY simple code here:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using EnterpriseDT.Net.Ftp;
namespace TestFTP
{
class Program
{
static void Main(string[] args)
{
FTPConnection client = new FTPConnection();
client.UserName = "lawson";
client.Password = "xxxxxxxx";
client.ServerAddress = "lawsont";
client.ServerPort = 21;
client.Connect(); <=== this line is throwing the error, but if I skip past it
if (client.IsConnected) <=== this comes up TRUE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! it actually does connect
{
Console.WriteLine("Yes.");
Console.ReadLine();
}
else
{
Console.WriteLine("No.");
Console.ReadLine();
}
client.Close();
client.Dispose();
}
}
}