Topic "Different versions of WinSCP"

Author Message
[View user's profile]

Joined: 2015-08-28
Posts: 4
Location: Glasgow, Scotland
I'm in the process of using the WinSCPnet.dll to transfer files to an SFTP site.

Everything works fine on my development environment, but when one of my users tried to run the application she got an error message, which she kindly forwarded to me.

Basically, I need to know if there's a way of forcing my application to use the .NET assembly that's bundled with it as opposed to the version of the application that's installed on the user's PC. Ultimately I don't want to have to uninstall WinSCP from the user's PCs if I can avoid it.

Incidentally, I downloaded the automation library just this afternoon. The exe file is version and the DLL file is version

Error Message.jpg (14.09 KB)

Description: (none)

Error Message.jpg

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia

WinSCP .NET assembly uses the winscp.exe that's in the same directory as the winscpnet.dll. Only if it does not find the .exe there is falls back to alternative locations, like the Program Files.

So make sure you deploy the .dll and the .exe to the same directory.

Or use Session.ExecutablePath to set the path to winscp.exe explicitly.

You can post new topics in this forum


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