Re: Log file in use / already exists
Please include callstack of the exception. And share your full code.
A first chance exception of type 'WinSCP.SessionLocalException' occurred in WinSCPnet.dll
Additional information: Configured temporary file c:\winscplogs\log.xml already exists
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file 'c:\winscplogs\log.xml' because it is being used by another process.
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file 'C:\Users\mhull\AppData\Local\Temp\wscp29FC.01794AF2.tmp' because it is being used by another process.