Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
37k 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 (51.6k points)
Correction: Actually you can adjust for different time-zones by setting the TimeDifference property on FTPConnection/ExFTPConnection/SecureFTPConnection.

- Hans (EnterpriseDT)
0 votes
by (1.9k points)
Hi Support,

Can we download a working version with the last discussed updates yet?

Thanks
0 votes
by (51.6k points)
Sorry, but can you be more specific? Which changes are you referring to?

- Hans (EnterpriseDT)
0 votes
by (1.9k points)
Hi I was referring to the latest modifications up to the following post.

Actually, I was waiting for some feedback, but I gather you agree with them so we'll go ahead and implement them. We're tied up with some other work at the moment, but should have it done by early next week.

- Hans (EnterpriseDT)
0 votes
by (51.6k points)
Oh, yes, that's been done and is included in the latest version 5.0.1 (see history). You can use the link that was included in the download instructions that you received when you purchased the product.

- Hans (EnterpriseDT)
0 votes
by (1.9k points)
Are these changes included in other versions of edtftpnet, like free and express versions?
0 votes
by (51.6k points)
edtFTPnet does not include synchronization features, but edtFTPnet/Express does. The latest version of edtFTPnet/Express contains the changes mentioned above.

- Hans (EnterpriseDT)
0 votes
by (140 points)
I have edtFTPnet/PRO 5.0.4.

Synchronizing via SynchronizeView (Property SyncLocalDateAfterDownload and RealTimeUpdate in SynchronizeView both set to TRUE) works as expected.
If I synchonize via secure ftp connection and set SyncLocalDateAfterDownload to true in the DefaultSyncRules, I get the following stack trace:

Connecting to server ftp.ruf.ch
Working directory is /
Synchronizing file... Action: DownloadRemote File: abc_NextConnections.txt, size 36, last modified 10.04.2008 10:15:00
Synchronizing file... Action: NoneRemote File: def_NextConnections.txt, size 0, last modified 10.04.2008 10:15:00Local File: def_NextConnections.txt, size 0, last modified 10.04.2008 10:43:54
Synchronizing file... Action: DownloadRemote File: ghi_NextConnections.txt, size 0, last modified 10.04.2008 10:15:00
Synchronizing file... Action: DownloadRemote File: Images.zip, size 254727702, last modified 10.04.2008 10:16:00
Synchronizing file... Action: DownloadRemote File: xyz_NextConnections.txt, size 0, last modified 10.04.2008 10:16:00
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at h.a(Object A_0, FTPFileTransferEventArgs A_1)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at EnterpriseDT.Net.Ftp.FTPConnection.InvokeDelegate(Boolean preferGuiThread, Boolean permitAsync, Delegate del, Object[] args)
at EnterpriseDT.Net.Ftp.FTPConnection.InvokeEventHandler(Delegate eventHandler, Object sender, EventArgs e)
at EnterpriseDT.Net.Ftp.FTPConnection.OnDownloaded(String localPath, String remoteFile, Exception ex)
at EnterpriseDT.Net.Ftp.FTPConnection.DownloadFile(String localPath, String remoteFile)
at h.a(String A_0, String A_1, FTPFile A_2)
at h.a(FTPSyncRules A_0, String A_1, String A_2)
at EnterpriseDT.Net.Ftp.ExFTPConnection.Synchronize(String localDirectory, String serverDirectory, FTPSyncRules syncRules)
at EnterpriseDT.Net.Ftp.ExFTPConnection.Synchronize(String localDirectory, String serverDirectory)
at SynchronizeDirectory.Program.Run(String serverAddress, Int32 serverPort, String userName, String password, String fileName) in C:\Dokumente und Einstellungen\daniel.doerig\Eigene Dateien\Synchro
nizeDirectory\Program.cs:line 71
0 votes
by (51.6k points)
Hi Daniel

Sorry for the slow reply.

I've identified the line of code that's failing, but I'm a little confused as to how it happened. Would you please e-mail a DEBUG level log to support@enterprisedt.com?

- Hans (EnterpriseDT)
0 votes
by (51.6k points)
Thanks for the log (now deleted due to length). We managed to replicate the problem and have now fixed it. Please write to support@enterprisedt.com so that we can send you an update.

- Hans (EnterpriseDT)

Categories

...