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

Guest

Re: Session is already open

Please disregard, I ended up removing the line below and now it works like a charm.
session.ExecutablePath = "C:\\Program Files (x86)\\WinSCP"
ealarcon

Session is already open

Hi there:
I am using C# to programmatically upload/download files to and SFTP site, but I have been receiving the error
Session is already open

session.DebugLogPath = @"C:\\DigitalPen\debug.log";
// Connect
session.Open(sessionOptions);
session.ExecutablePath = "C:\\Program Files (x86)\\WinSCP";


If I set the ExecutablePath property before the Open method:
session.DebugLogPath = @"C:\\DigitalPen\debug.log";
session.ExecutablePath = "C:\\Program Files (x86)\\WinSCP";
 
// Connect
session.Open(sessionOptions);

The error I get is
C:\Program Files (x86)\WinSCP does not exists.

Please help!