Topic ".NET Assembly with portable WinSCP version"

Author Message
[View user's profile]

Joined: 2012-12-03
Posts: 1
So from the documentation and some forum posts i got the information that the portable version can not be used properly if there is already an installed WinSCP on a machine.

I'm a little confused about the .NET wrapper, which only runs with the exact same version of WinSCP.exe
When I try to run my program on a machine that has already a version installed then my program will only work if the machine has incidentially the same version as the dll version I packed with the program.

Is there a solution for this, besides trying to always pack the right dll version?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Using the assembly with portable executable winscp.exe is supported and definitelly preferred over using it with installed executable.

The. dll looks first for the winscp.exe in its folder. Only, if it does not find the .exe there, it falls back to using installed executable.

You can override the lookup using Session.ExecutablePath.

Please see

If you believe it does not work for you as described, please set Session.DebugLogPath and attach or email me the log.

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License