2

I exported a package from the production server (.ispac) to my local computer and opened in SQL Server Data Tools 2015 since I need to make some changes in the work flow. This package also include a script task which I need to alter and debug.

I added a break-point in the code, the problem is that when I run the package from Data Tools, VS 2015 opens but the below error is show and VS 2015 closed immediately and therefore I an not able to debug the code.

enter image description here I have been trying to solve this for a couple of hours and viewed various post but no success. I already: Set Run64BitRuntime = False

If I remove all the breakpoints and run the package all tasks will succeed but the script task is not doing what it is intended for... (this is why I need to debug).

I am stuck and not able to fix the code!

Hadi
  • 36,233
  • 13
  • 65
  • 124
user2307236
  • 665
  • 4
  • 19
  • 44
  • Possible duplicate of ["Runtime error Exception has been thrown by the target of an invocation" from Script task](http://stackoverflow.com/questions/28997381/runtime-error-exception-has-been-thrown-by-the-target-of-an-invocation-from-sc) – Yahfoufi Apr 14 '17 at 10:53