Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
36.3k views
in .NET FTP by (1.9k points)
Hi,
FTP Synchronizer is a great tool. However, I can never get it to work. I am using VB 2005 .NET 2.0. And I started by running it from the example viewer. The example runs and connect to the server, but when I click on "synchronize", I get a lot of errors. The error reads as follows:

- Could not get file modification time. (code 550) "I get 5 pop up messages boxes of this type after clicking synchronize."
- Error - System reference not set to an instance of an object .... "then a lot of exception details."



My second question is, can I do the synchronization tasks at run time in my code rather than in GUI. I want to sun synchronization to almost 200 ftp servers in a loop.

Thanks

38 Answers

0 votes
by (520 points)
The error I am getting is NullReferenceException: "Object reference not set to an instance of an object." It happens when I attempt to reference e.LocalFile.Name while it exists on the Remote path.


Yes, when either of the files doesn't exist then the property that references it will be null. For example, if the remote file exists but the local files doesn't then e.RemoteFile will be set but e.LocalFile will be null. This is by design. I guess a couple of flags on the event-args called something like LocalFileExists and RemoteFileExists would be useful.

I also noticed that the LocalDirectory and RemoteDirectory .size property always returns 0.


Yes, the Size property for directories has always been zero, but in this case we actually can calculate the total size of the directory so it is actually feasible to set it. Good idea. We'll do that.

- Hans (EnterpriseDT)



From what I've seen, this is not exactly true. From what I have seen, there are two passes made. One to gather the remote files information and another to gather the local. When the remote files are being gathered the e.LocalFile is null even if it exists on the remote server, and vica versa. This is one of the reasons I find it difficult to use this event. Please let me know if my explanation is wrong, and it is, how do I use this event?

Thanks.
0 votes
by (51.1k points)
Hi Shawn

The synchronization code has been rewritten as a part of the new 'concurrent transfers' functionality which is due to be released as a part of version 7.0 in a couple of weeks. We should be able to send you a pre-release version of this. If you want this please e-mail support@enter...
0 votes
by (520 points)
I am using edtFTPExpress, which I believe is currently at version 3.7. Does this mean that syncing is only available in the Pro edition? In the feature matrix on the web site says that syncing is available in the Express edition. Please confirm.

Thanks.
0 votes
by (51.1k points)
It'll be in edtFTPnet/Express 4.0 as well.
0 votes
by (520 points)
I sent the request but I haven't heard back. This is the last issue I need to implement and I'm done with my project. I'm sort of in a time crunch. When do you think I might be able to receive the pre-release of version 4 of Express?

Thanks.
0 votes
by (51.1k points)
Hi Shawn

The guy who does our builds was away yesterday afternoon (Australian time), but is back in this morning. I'll ask him to build it for you and let you know when it's ready.
0 votes
by (140 points)
Hi Shawn

The synchronization code has been rewritten as a part of the new 'concurrent transfers' functionality which is due to be released as a part of version 7.0 in a couple of weeks. We should be able to send you a pre-release version of this. If you want this please e-mail support@enter...


Hi, I downloaded the current version of edtFTPnet/PRO and it still seems that the e.LocalFile in the SynchronizingFile is empty even if the local file really exists. Any chance how to solve this? I would like to buy the PRO version, but without checking the local files existence while synchronizing it is useless for me.
0 votes
by (51.1k points)
Sorry for the slow reply.

I just tried this and it worked OK. Any chance you can send us a test application that illustrates the problem? If so please e-mail it to support@enterprisedt...

- Hans (EnterpriseDT)

Categories

...