Method not found: ‘Void System.Threading.EventWaitHandle..ctor(…)’
Full message:
Method not found: ‘Void System.Threading.EventWaitHandle..ctor(Boolean, System.Threading.EventResetMode, System.String, Boolean ByRef, System.Security.AccessControl.EventWaitHandleSecurity)’
The exception can be represented as MethodInvocationException
(Exception calling “Open” with “1” argument(s)) or MissingMethodException
(Method not found).
The exception occurs, when you are trying to use .NET Framework build of the assembly in .NET [Core] code or from PowerShell [Core].
You need to use .NET Standard build of the assembly, which is located in the netstandard2.0
subfolder of WinSCP-X.X.X-Automation.zip
package.
For details, learn about installing the assembly.