Re: The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another
Please double check that. If WinSCP .NET assembly were not able to create a debug log, it would throw a corresponding exception. What does not seem to be happening, as you get another exception much later when the debug logging is already started.