title: How to solve "Runtime error Exception has been thrown by the target of an invocation" Am I missing a DLL file?
body: <p>I'm doing some testing which outputs the full result set into script task (display messagebox) from <code>Execute SQL Task</code> using <code>Foreach loop Container</code>. but running into DTS <code>Script task</code>: runtime error.</p>
  
  <p><em>Error Message box</em></p>
  
  <p><a href="https://i.stack.imgur.com/xO8Fc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xO8Fc.jpg" alt="Error Message Box"></a></p>
  
  <p>Am I missing some sort of DLL file?</p>
  
  <p><em>Script</em></p>
  
  <p><a href="https://i.stack.imgur.com/wiLMR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wiLMR.jpg" alt="Script"></a></p>
  
  <p><em>Control flow</em></p>
  
  <p><a href="https://i.stack.imgur.com/dV0Yy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dV0Yy.jpg" alt="Control FLow"></a></p>