Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in .NET FTP by (160 points)
I am writing a Windows Service to synchronize (download) a local directory from an FTP server using the ExFTPConnection.Synchronize method. Occasionally, one of the local files is in use and cannot be overwritten immediately. I can see the retry's happening and 99% of the time this should work, however if all of the retry's have been exhausted I finally get an IOException and the Sych dies. What I can't seem to figure out is how to either catch the error, and/or return from the Synchronize method. I wrapped the Synchronize method in a standard try/catch block (C#) and the exception never occurs at runtime - but if I turn on the component's logging and can see it the internal exception occur. Any ideas on how I should go about handling this?

3 Answers

0 votes
by (162k points)
Have you tried setting the StopOnError flag to false (in FTPSyncRules)?
0 votes
by (160 points)
Yes, I have tried that but it doesn't appear to have any effect in my testing.
0 votes
by (162k points)
Ok, can you please get a log file at the Debug level and email it to support at enterprisedt dot com. Please zip the file before emailing.

Categories

...