Topic "Log file in use / already exists"

Author Message
pinkfloydx33
[View user's profile]

Joined: 2014-03-31
Posts: 1
I am using the .NET wrapper to control winscp. When I open a new session, I get an exception indicating one of the follow:
1. another process has the log file in use
2. the log file already exists

I can't get any further then attempting to open the session. I've tried setting the log paths to directories that I've given access to 'everyone' as well as the account that I'm running visual studio in.

If the log file exists:
Quote:
A first chance exception of type 'WinSCP.SessionLocalException' occurred in WinSCPnet.dll

Additional information: Configured temporary file c:\winscplogs\log.xml already exists


If I delete the log file OR do not manually set a log path:

Quote:
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.


Quote:
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.


I have tried using .Net framework 4.5 and 4.0. I've tried setting the target architecture from Any CPU to x86. Getting no luck here.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Please include callstack of the exception. And share your full code.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License