I am trying to run a very simple test package developed in SSIS 2012 through a SQL Agent job, but the execution fails with: "Error: Exception has been thrown by the target of an invocation."
I use a test server, running on 64 bit Windows Server 2008R2 + SQL Server 2012 64 bit.
This test package contains nothing but a Script Task, calling a Visual C# Script with only one additional line of code: MessageBox.Show("Testing");
I know, you wouldn't display a message box in a production environment, but this is just for testing ;)
It works in SSDT debug, it works after being deployed to a SSIS catalog and executed directly, but when called via a Agent job it fails.
I've configured the job step to use a SSIS proxy to execute the package with exactly the same credentials used for development/testing, I even tried the advanced option "32-bit runtime", the package still fails.
I configured verbose logging, but the quoted error message is the only relevant feedback I get, there is nothing in the windows eventlog either.