I suddenly began getting an version error with the .NET Assembly:
Write-Error: Exception calling "Open" with "1" argument(s): "The version of C:\Program Files (x86)\WinSCP\winscp.exe (6.1.2.0) does not match version of this assembly C:\Program Files (x86)\WinSCP\netstandard2.0\WinSCPnet.dll (6.1.1.0)."
I’m guessing it may be caused by a recent WinSCP software update.
I tried downloading & installing the (hopefully) newer version of the .NET Assembly from the WinSCP site, but I then I got a
different error message:
Write-Error: Exception calling "Open" with "1" argument(s): "Method not found: 'Void System.Threading.EventWaitHandle..ctor(Boolean, System.Threading.EventResetMode, System.String, Boolean ByRef, System.Security.AccessControl.EventWaitHandleSecurity)'."
Debug log is attached.
My PSVersionTable:
PSEdition Core
GitCommitId 7.3.7
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
What do I have to do to make this work?