Topic "Updating old code"

Author Message


So, we have a code base that uses WinSCP pretty consistently, but version (which is installed on the server). The version I have on my machine is 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 ( does not match version of this assembly C:\Program Files (x86)\WinSCP\WinSCPnet.DLL (

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!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
Deploy winscp.exe along with the application.
The easiest way it to use WinSCP NuGet package.
It's all documented:

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