+1 vote
by (230 points)
edited

i'm trying to fxp a list of items using the following code:

foreach (var item in slist)
{   
        await sourceFtpHandler.Ftp.CopyToAnotherServerAsync(destinationFtpHandler.Ftp,
                                                        item.Name,
                                                        string.Format("{0}/{1}",destinationPath, item.Name));
}

the problem is that the first file is copied well.. but after that i get an error:

Failed TLS negotiation on data channel (using SSL_connect()), disconnected: Success (435).

i tried to switch the order of the list to see that it's not a particular file, and it always success to copy the first file, and gives error on the second.

please assist.

Applies to: Rebex FTP/SSL

3 Answers

0 votes
by (58.9k points)
edited
 
Best answer

Hello, we have improved the SSCN mode handling in FXP. Please download the hotfix and let us know, if it works for you now. If the code still fails, please send us a new log.

UPDATE

The fix has been released as part of Rebex 2013R3 FTP/SSL version. For more information about the new version see blogpost. You can check release notes for complete list of changes in Rebex FTP/SSL component.

by (230 points)
edited

is it possible to have 4.5 assemblies ?

by (58.9k points)
edited

Just use those from net-4.0 directory. They're compatible with both .NET 4.0 and .NET 4.5.

by (230 points)
edited

Exception is: FileLoadException - Could not load file or assembly 'Rebex.Ftp, Version=4.0.4981.0, Culture=neutral, PublicKeyToken=1c4638788972655d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

by (58.9k points)
edited

In your VS project, please remove all references to the Rebex libraries, clean the project, then add the references to the hotfix assemblies (all three of them - Common, Networking and Ftp). Then rebuild. It should be working now.

by (230 points)
edited

i don't know about those libraries still getting the manifest error but i can tell the problem is solved. i tried it on a new project and all files were transferred successfully !

by (58.9k points)
edited

Great to hear it works! Thank you. The procedure to succesfully upgrade to the hotfix is the same as in this article which describes how to upgrade from trial to full version (in your case you upgrade from ordinary version to hotfix version). You could also try to delete the old dll's from your computer completely and a complete solution clean might also be needed as a trace of the old dll might be somewhere in the bin directory and causing the problems you described.

0 votes
by (58.9k points)
edited

Please create a log of the communication as described in this article and either post the log here, or send it to support@rebex.net. We will be able to look into your issue then. Thanks!

by (230 points)
edited

sent via email

by (58.9k points)
edited

Thank you for the log file, we will get back to you today.

0 votes
by (58.9k points)
edited

We have examined the log and here are our findings:

In fact everything goes fine in the log except for the last error in secondary and primary FTP server

2013-10-07 12:06:11.223 INFO Ftp(1)[13] Response: 435 Failed TLS negotiation on data channel (using SSL accept()), disconnected
2013-10-07 12:06:11.223 INFO Ftp(2)[13] Response: 435 Failed TLS negotiation on data channel (using SSL connect()), disconnected: Success.

Both the servers have notified Rebex FTP client about these error, but we cannot read anything more from it than reported by the servers...

We do not have (and cannot possibly find out from the Rebex FTP client point of view) why the negotiation between the two servers has failed.

One possible way to find this piece of information is to look into the actual FTP server logs.

Could you also try if the FXP between those two servers works with another FTP client? (e.g. FlashFXP has support for FXP).

If you can make FXP work with another FTP client, please create the log of the communication and send it to us.

by (230 points)
edited

Hi, i attached flash fxp log via email. thanks.

by (58.9k points)
edited

Thank you for the log, we will get back to you today.

...