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