WinSCP Assembly c# script in SSIS ResumeSupport.State
I an trying to perform a synchronization in a C# script in SSIS. I would like to turn off
ResumeSupport.State
. I am using the code below, but I still get an error message of: Thank you for any help!Transfer was successful, but temporary transfer file could not be renamed...
using (Session session = new Session()) { // Connect session.Open(sessionOptions); TransferOptions transferOptions = new TransferOptions(); // Disable transfer with resume support/to temporary filename for all files transferOptions.ResumeSupport.State = TransferResumeSupportState.Off; MessageBox.Show(transferOptions.ResumeSupport.State.ToString()); // Synchronize files SynchronizationResult synchronizationResult; synchronizationResult = session.SynchronizeDirectories( SynchronizationMode.Local, sLocalFolder, "/", false); // Throw on any error synchronizationResult.Check(); session.Close(); }