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. Though this won’t help if the error occurs even before the SSIS
Main method is started. In this case, the actual error should be shown on the Progress tab of your SSIS package. Often, 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.