Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
karthiga

Re: The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another

It is working and writing the logs in debug log file, but when this error comes, I can't see any logs after that in the debug log file. The error shows in Stackify. I attached Stackify error details in my previous message.
martin

Re: The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another

So do you mean that it works sometimes (most of the time?) and then it suddenly stops working? You never mentioned that. Please give us more details.
karthiga

The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another

I tried again, but when this error occurred, it stopped adding the logs. I added the error details.
martin

I do not see any error in the log. Is this a log for the session that failed with the exception you have included in your first post?
karthiga

I've attached the log file.
martin

Re: The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another

Please set Session.DebugLogPath and attach the log here.
karthiga

The process cannot access the file '...wscp134C.003E8D9B.tmp' because it is being used by another

Following is the error message:

The process cannot access the file '...\AppData\Local\Temp\wscp134C.003E8D9B.tmp' because it is being used by another process.
System.IO.IOException: The process cannot access the file '...\AppData\Local\Temp\wscp134C.003E8D9B.tmp' because it is being used by another process.
at System.IO.__Error.WinIOError
at System.IO.FileStream.Init
at System.IO.FileStream..ctor
at WinSCP.PatientFileStream..ctor
at WinSCP.SessionLogReader.OpenLog

Version of WinSCP: 5.17.9

Any assistance please?