Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.3k views
in .NET FTP by (320 points)
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();


}
}
}

4 Answers

0 votes
by (320 points)
P.S. - Version=7.2.0.20 of edtFTPNetPRO
0 votes
by (162k points)
Try 7.3.0 - I think this is a bug in 7.2.0 that has been fixed.
0 votes
by (320 points)
How do I get 7.3.0? I am a brand new customer who thought he had downloaded the "latest" (7.2.0).....
0 votes
by (162k points)
7.3.0 was just released. Take a look at the email you received when you purchased - it gives you details of how to download the latest version. That latest version is now 7.3.0 (it would have been 7.2.0 when you downloaded).

Categories

...