WinSCP.exe does not match assembly version WinSCPnet.dll

Advertisement

RaSe
Joined:
Posts:
1
Location:
Czech Republic

WinSCP.exe does not match assembly version WinSCPnet.dll

Hi, after latest upgrade of WinSCP the PowerShell script stopped to work due to an error:
The version of C:\...\winscp.exe (6.3.7.0) does not match version of this assembly C:\...\WinSCPnet.dll (6.3.4.0)
How can I make those two versions align? Why it was not upgraded to the same version and why it actually bothers PowerShell?
Could anyone help with this? Or do I have to reinstall all..
Thanks,
RS

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,774
Location:
Prague, Czechia

Re: WinSCP.exe does not match assembly version WinSCPnet.dll

We do not know your setup. And hiding the paths make it even more difficult for us to help.

My guess is, that you have separate copy of the .NET assembly along with your script, without a copy of winscp.exe. So the assembly falls back to using an installed copy of winscp.exe. In general, either use the assembly from WinSCP installation (so that it will always use the installed and compatible winscp.exe). Or make a copy of the same version of both the assembly and winscp.exe along your script.

Reply with quote

Guest

Re: WinSCP.exe does not match assembly version WinSCPnet.dll

Those files were in the same directory and my guess is, that the assembly was somehow running while I did the reinstallation? I have no idea.
I just gave up and did whole new installation that solved my problem. Both versions now align and PowerShell is working.
Thanks for replying anyway..

RS

Reply with quote

Advertisement

You can post new topics in this forum