Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
11.9k views
in .NET FTP by
Hi,

When I'm doing a binary transfer the transfer gets blocked before the while file has been downloaded.

No exception is thrown. I have not looked in to the code too deep but is there a chance that the code will stay in an infinite loop in

private void GetBinary(string localPath, string remoteFile)
?

I get the same problem with the included ftptest.exe.

In ASCII mode this problem does not occur.

/Tommy

8 Answers

0 votes
by (162k points)
What version are you using? And what FTP server?

Hi,

When I'm doing a binary transfer the transfer gets blocked before the while file has been downloaded.

No exception is thrown. I have not looked in to the code too deep but is there a chance that the code will stay in an infinite loop in

private void GetBinary(string localPath, string remoteFile)
?

I get the same problem with the included ftptest.exe.

In ASCII mode this problem does not occur.

/Tommy
0 votes
by
I'm using version 1.1.0.

I have tried both the IIS-FTP server on Windows XP and Proftpd on Debian Linux.

ASCII transfer works fine, but not Binary. It seems like the while loop (in GetBinary) gets stuck on the last "packet". A ~50 MB file gets transfered all but the last 4kB. Files smaller than 4kB is created in my local directory but have 0 bytes size.

I downloaded edtFTPnet just yesterday so perhaps I'm doing something wrong since I'm not so familiar with the API yet, but should I do something differently when downloading binary than ASCII?

/Tommy
0 votes
by (162k points)
We'll check it out ASAP - maybe we've screwed up somewhere. We are planning to release 1.1.1 in a few days with some minor enhancements (transfer progress events) so if a fix is required it'll be out very soon.

In the meantime, if you need it to work right now try 1.0.3 - binary transfers definitely work in this version. Upgrading to 1.1.x later is straightforward.

1.1.0 is basically a complete rewrite so there may be a couple of teething problems.

You shouldn't need to do anything different for binary transfers.

I'm using version 1.1.0.

I have tried both the IIS-FTP server on Windows XP and Proftpd on Debian Linux.

ASCII transfer works fine, but not Binary. It seems like the while loop (in GetBinary) gets stuck on the last "packet". A ~50 MB file gets transfered all but the last 4kB. Files smaller than 4kB is created in my local directory but have 0 bytes size.

I downloaded edtFTPnet just yesterday so perhaps I'm doing something wrong since I'm not so familiar with the API yet, but should I do something differently when downloading binary than ASCII?

/Tommy
0 votes
by (162k points)
We have screwed up and the problem is fixed. It is such a minor fix that we haven't incremented the version number.

Please download 1.1.0 again from

http://www.enterprisedt.com/products/ed ... nload.html

and try it out. Should be fine now - please let us know if it isn't!

We'll check it out ASAP - maybe we've screwed up somewhere.
0 votes
by
Should be fine now - please let us know if it isn't!


It works fine now. Thanks!

/Tommy
0 votes
by
Note to those downloading and having this bug right now - the DLL doesnt seem to include these changes, so you'll have to rebuild it when you download the library if I'm not mistaken. Just tried and having the same problem just adding the reference to the libarry using the 1.1.0 DLL. 1.0.3 Binary transfer works though.

Also, off-topic, but I might note that Chdir was changed to ChDir from 1.0.3 to 1.1.0.

Very awesome lib, though. VERY helpful :)
0 votes
by (162k points)
We're pretty sure that our automatic build ensures the right DLL is distributed, but we'll re-test the distro just to be sure.

We did some very minor name changes to make names more standard with .NET naming, hope it isn't too much of a problem.

Note to those downloading and having this bug right now - the DLL doesnt seem to include these changes, so you'll have to rebuild it when you download the library if I'm not mistaken. Just tried and having the same problem just adding the reference to the libarry using the 1.1.0 DLL. 1.0.3 Binary transfer works though.

Also, off-topic, but I might note that Chdir was changed to ChDir from 1.0.3 to 1.1.0.

Very awesome lib, though. VERY helpful :)
0 votes
by (162k points)
I've downloaded from the site and checked the release - I think it is fine. You might have the old DLL lying around.

Note to those downloading and having this bug right now - the DLL doesnt seem to include these changes, so you'll have to rebuild it when you download the library if I'm not mistaken. Just tried and having the same problem just adding the reference to the libarry using the 1.1.0 DLL. 1.0.3 Binary transfer works though.

Categories

...