This is just a high-level exception. The root cause is usually stored in the
If you are getting this exception in SSIS, you can use
catch block to capture the error, as show in the example for using WinSCP .NET Assembly from SSIS.
If you cannot access the inner exception easily, inspect WinSCP session log and debug log file (
Session.DebugLogPath). If those file are not even created, the root cause can be loading of
WinSCPnet.dll assembly. See Could not load file or assembly 'file:///...\WinSCPnet.dll' or one of its dependencies. The system cannot find the file specified..