title: WinSCP no longer working within SSIS Script Tasks
body: <p>I have some existing SSIS packages that have been working using WinSCP within a  Script Task to send/receive files using SFTP.</p>
  
  <p>The SSIS packages are now throwing an error when attempting to execute the script task. The debugger is not available as the script task cannot be instantiated. </p>
  
  <pre><code>Error: Exception has been thrown by the target of an invocation.
  </code></pre>
  
  <p>Within the script editor the Code Analysis tool (Menu > Build > Run Code Analysis on...) produces the following issue:</p>
  
  <pre><code>'ScriptMain' is marked ComVisible(true) but has the following
   ComVisible(false) types in its object hierarchy: 'VSTARTScriptObjectModelBase'
  </code></pre>
  
  <p>I tried decorating the class and Main method with [ComVisible(false)] which did not work.</p>
  
  <p>WinSCP no longer works using SSIS 2012.</p>
  
  <p>How can I resolve this issue? </p>