Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.5k views
in .NET FTP by (240 points)
I'm trying to resume transfer after being disconnected (by server or just bad connection). But with a new session, I got file permission exception and can not immediately resume transfer or overwrite/delete the existing file on server. Basically, I have to wait for quite some time before server finally releases the file.

Is there a solution for this problem? Please help. Thanks.

Bob

3 Answers

0 votes
by (162k points)
Have you tried disconnecting and reconnecting?
0 votes
by (240 points)
Support2,

Thanks for your response.

Yes, I did. But, once reconnected, I got 550 error (file is being held by another process). This might be because it's a Windows server.

I tried to put FTP thread to sleep for certain time and then reconnect. Even a 10 minutes long wait is NOT enough. But if reconnecting after 15 minutes, the file is accessible again.

15 minute wait is too long, though transfer resuming does work after getting reconnected.

Is there anything we can do from client side?


Bob
0 votes
by (162k points)
It looks like there is a timeout on the server side for releasing file locks. I don't think you can do much about it, other than contacting your server's support contact and asking if there is a way around this.

Categories

...