These questions apply to VB.NET windows forms application.
Two questions please.
PutFileswithout error but the files are still being copied to the external server. This is causing the job to appear as completed while the files are still being transferred to the external server. What transfer options, if any, can be modified to prevent this behavior? Source code below.
Dim transOptions As New TransferOptions transOptions.TransferMode = TransferMode.Binary transOptions.OverwriteMode = OverwriteMode.Overwrite transOptions.PreserveTimestamp = False transOptions.ResumeSupport.State = TransferResumeSupportState.Off Dim transferResult As TransferOperationResult = sess.PutFiles(dmzPath, "/" + serverDetails.WebServerFolderPath, False, transOptions) transferResult.Check()
TransferOptions.PreserveTimestampdue to errors we were receiving about timestamp permissions. It stopped the errors but not really clear what this property does? Also, how would
TransferOptions PreserveTimestampaffect files being downloaded to an IIS server being displayed on website? I know you are probably not IIS experts. But do you know if
PreserveTimestamp = truewould make IIS think the file is not a new file and therefore use the cached version?
Appreciate the assistance.