martin wrote:
This exception must have an inner exception that contains the real error. Without knowing that, we cannot help you. Though make sure you use the same version of WinSCP and WinSCP .NET assembly.
Unable to debug, the error does not occur running locally; it occurs when running on server as the SSIS task tries to invoke the script which references WinSCP. Although the version of WinSCP on local machine and server are different, the executable / dll are located in the same location on both; the reference resolves on local and server successfully.
Some notes about upgrade to VS2017: when first modified and deployed (changed ConnectionString parameter only, without opening script) the same error occurred running locally, the server error reported the script was corrupted. After simply opening and closing the script (Edit Script, but no modification) the SSIS package appeared to see a change, requiring a save/rebuild; the package then ran okay locally, but after redeployment server reports the error noted in original post.
I will try undoing modifications to reintroduce the error running locally, see if I can trap an InnerException.