Topic "Updating old code"

Author Message
n8mills

Guest


So, we have a code base that uses WinSCP pretty consistently, but version 5.1.7.0 (which is installed on the server). The version I have on my machine is 5.9.6.0. When I develop on my machine and deploy to the server it gives me this message:

WinSCP Exception: The version of C:\Program Files (x86)\WinSCP\winscp.exe (5.1.7.0) does not match version of this assembly C:\Program Files (x86)\WinSCP\WinSCPnet.DLL (5.9.6.0).

I am pretty new to all of this so guidance would be helpful, what changes can I make to the code base so that if we update WinSCP it doesn't break all of the automation? I assume that my dev machine must have the same version of WinSCP that the server has installed.

Thank you!
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26706
Location: Prague, Czechia
Deploy winscp.exe along with the application.
The easiest way it to use WinSCP NuGet package.
It's all documented:
https://winscp.net/eng/docs/library_install#installing
Advertisements

You can post new topics in this forum

Search

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