Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

RichK

Posts

7

Joined

Sat Jan 15, 2011 12:55 am

Error using .Connect() method of FTPConnection object

by RichK » Thu Feb 03, 2011 4:32 am

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();


}
}
}
no avatar
User

RichK

Posts

7

Joined

Sat Jan 15, 2011 12:55 am

by RichK » Thu Feb 03, 2011 4:36 am

P.S. - Version=7.2.0.20 of edtFTPNetPRO
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Feb 03, 2011 7:15 am

Try 7.3.0 - I think this is a bug in 7.2.0 that has been fixed.
no avatar
User

RichK

Posts

7

Joined

Sat Jan 15, 2011 12:55 am

by RichK » Thu Feb 03, 2011 7:18 am

How do I get 7.3.0? I am a brand new customer who thought he had downloaded the "latest" (7.2.0).....
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Feb 03, 2011 9:50 am

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).

Who is online

Users browsing this forum: No registered users and 31 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron