Post a reply

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)


Topic review


Re: Error

You have different versions of WinSCP.exe, (the problem 2) and WinSCPnet.dll (the problem 3)

In VS, the easiest to is to use NuGet package:

You definitely should not rely on the installed version (in Program Files) of the WinSCP.exe. Your application should include/deploy its own copy.
Henry Lo


Hello Martin
computer OS version --> Windows 7 Service Pack 1
Henry Lo
Henry Lo


Hello Martin
1. WinSCP.exe (Version 5.19.2(Build 11614)) --> OK
File protocol: SFTP
Host name:
Port number: 22
User name: manufact
Password: SUNRISE
First connect display --> "ssh-rsa 2048 d7:db:c5:44:8e:f6:55:87:bd:c9:1e:e8:53:71:e1:45"
2. In DOS mode state run (Version ?) -->
Incompatible external console protocol version 1

3. Microsoft Visual Studio Community 2017 Ver.15.9.9
Dim sessionOptions As New SessionOptions
Dim session1 As New Session
With sessionOptions
     .Protocol = Protocol.Sftp
     .HostName = ""
     .UserName = "manufact"
     .Password = "SUNRISE"
     .PortNumber = 22
     .FtpMode = FtpMode.Active
     .FtpSecure = FtpSecure.None
     .SshHostKeyFingerprint = "ssh-rsa 2048 d7:db:c5:44:8e:f6:55:87:bd:c9:1e:e8:53:71:e1:45"
     .GiveUpSecurityAndAcceptAnySshHostKey = True
End With
session1.DisableVersionCheck = false

Error in here
WinSCP.SessionLocalException:The version of c:\Program Files(x86)\WinSCP\winscp.exe( does not match version of this assembly c:\User\AppData\Local\Temporary Projects\WindowsApp1\bin\Debug\WinSCPnet.Dll(

session1.DisableVersionCheck = True

Error in here:

Can you pls. helo what Could wrong?
Henry Lo