Post a reply

Options
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)

Options

Topic review

craigdanforth

WinSCP Version 5.15.2 (Build 9590) Error Mismatched errors with WinSCPnet.dll

WinSCP Version 5.15.2 (Build 9590). When I run a powershell script and get to my
Add-Type -Path "C:\Program Files\WinSCP\WinSCPnet.dll" I get an Error: Could not load file or assembly 'file:///C::\Program Files\WinSCP\WinSCPnet.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. The WinSCPnet.dll is dated 5/29/2019.

When use a different WinSCPnet.dll dated 1/8/2019 the error changes to: Exception calling "Open" with "1" argument(s): "The version of C:\Program Files\WinSCP\winscp.exe (5.15.2.0) does not match version of this assembly C:\Program Files\WinSCP\WinSCPnet.dll (5.13.7.0)."
How do I find the WinSCPnet.dll that works with winscp.exe (5.15.2.0)?
martin

Re: WinSCP-5.15.3-Automation.zip winscp.exe and winscpnet.dll have a mismatch

When do you get that error?
Guest

WinSCP-5.15.3-Automation.zip winscp.exe and winscpnet.dll have a mismatch

I've downloaded and unpacked these two files together and get the following message when used:
winscp.exe (5.13.3.0) does not match version of this assembly WinSCPnet.dll (5.7.7.0)