I have a SSIS package that runs locally on my machine just fine but when I move it to my integration server and try to run it through VS 2010 Shell on the Integration server I get the following error when loading the DTS Script:
DTS Script Task has encountered an exception in user code:
Project Name: ST_d3f7f00f7f3447299e9f5179f3d80872
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
Mind you, this same code runs without an issue on my local machine. I've had two other people look at the code and verify that the variables are all spelled correctly (which is what I understand to normally throw this error).
Would anyone have an idea on why I'm getting this error? Is it because locally I use VS 2010 Professional version 10.0.40219.1 SP1Rel with .Net Framework 4.0 and the Integration Server uses VS 2010 Shell?
Thanks,
Bob