Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.6k views
in .NET FTP by (560 points)
Hi Everyone,

I use edtFTPnetPro and try to connect just like below. Everything is fine, however i want to use clear data channel. How can i set clear data channel?

SecureFTPConnection connection = new SecureFTPConnection()

connection.Protocol = FileTransferProtocol.FTPSExplicit
connection.ServerAddress = this.host;
connection.ServerPort = this.port;
connection.UserName = this.username;
connection.Password = this.password;
connection.TransferType = FTPTransferType.ASCII;
connection.DataEncoding = Encoding.Default;
connection.LicenseKey = "XXX";
connection.LicenseOwner = "XXX";

connection.Connect();

6 Answers

0 votes
by (162k points)
We really should add a property to determine if the data channels are private or public. But for now you can do this:

connection.InvokeFTPCommand("PROT C", "200");

after the Connect() call.
0 votes
by (560 points)
Thank you for your quick response.

I added below code. FTPReply is ok(Data channel is clear).
However after establishing connection, when i try to get files from server, i get the error "The server hello message uses a protocol that was not recognized".
Is it something about my ftp server, or just misconfiguring my connection?

FTPReply reply = connection.InvokeFTPCommand("PROT C", "200");

string[] files = connection.GetFiles(directory);
0 votes
by (162k points)
Probably best now to enable logging at the All level and send a zipped log file to support at enterprisedt dot com.
0 votes
by (560 points)
Thanks.

I send the detailed log file to support. As soon as i recieve a suggesstion/solution, i will glad to share it in this topic.
0 votes
by (162k points)
We've emailed you a link to a new DLL to try, that has a new property on SecureFTPConnection called UseUnencryptedData.
0 votes
by (560 points)
Hi,

I

Categories

...