Even the error message that you posted originally shows that you get the error at the
So once again, make sure you use WinSCP .NET assembly binary compatible with your PowerShell/.NET version.
Session.Open
call. And that the method in question is EventWaitHandle..ctor
internally used by the Session.Open
. This has nothing to do with ResumeSupport
. Your ResumeSupport
code is most likely not even reached in your script (I assume you call Session.Open
before you create the TransferOptions
). Just try to rollback your script changes. You will most likely still get the same "Method not found" error.
So once again, make sure you use WinSCP .NET assembly binary compatible with your PowerShell/.NET version.