I have an SSIS package with a script task, I get the following error when I try to run it on my local system. It works great for my colleagues as well as in production. However, I cannot run it locally to check. I save the debug point in the main method, but it has never been reached, I get an error before it goes to the main method.

I am using VS 2010, .Net framework 4.5.
The script task is executed. I get the following messages: SSIS package ".. \ Test.dtsx". Error: 0x1 in test: exception was thrown by the target of the call. Failed to complete the task: complete the verification of the SSIS package ".. \ Test.dtsx": "Success". The program '[2552] DtsDebugHost.exe: DTS' exited with code 0 (0x0).
Below is the code:
public void Main() { try { LogMessages("Update Bug package execution started at :: " + DateTime.Now.ToLongTimeString()); LogMessages("Loading package configuration values to local variables."); strDBConn = Dts.Variables["User::DBConnection"] != null ? Dts.Variables["User::DBConnection"].Value.ToString() : string.Empty; strTPCUrl = Dts.Variables["User::TPCUrl"] != null ? Dts.Variables["User::TPCUrl"].Value.ToString() : string.Empty; TfsTeamProjectCollection objTPC = new TfsTeamProjectCollection(new Uri(strTPCUrl)); WorkItemStore objWIS = new WorkItemStore(objTPC); WorkItemCollection objWIC = objWIS.Query("SELECT..."); foreach (WorkItem wi in objWIC) { } } catch(Exception ex) { }
When I commented on the code from TfsTeamProjectCollection objTPC = new TfsTeamProjectCollection (new Uri (strTPCUrl)); The script runs successfully. However, if I save TfsTeamProjectCollection objTPC = new TfsTeamProjectCollection (new Uri (strTPCUrl)); and comment on the rest, I get an exception. I have access to the URL.
I am using Microsoft.TeamFoundation.Client.dll and Microsoft.TeamFoundation.WorkItemTracking.Client.dll in my script task. However, the dll version in package 10.0 and the DLL version in my GAC is 12.0. Will this cause a problem?
source share