Method not found Tracking Service when upgrading to 2.2.

I upgraded my scripts, but am still getting the following error when

System.Workflow.Runtime.Tracking.SqlTrackingService st = (System.Workflow.Runtime.Tracking.SqlTrackingService)workflowRuntime.GetService(typeof(System.Workflow.Runtime.Tracking.SqlTrackingService));

System.Workflow.Runtime.Tracking.SqlTrackingQuery stq =new System.Workflow.Runtime.Tracking.SqlTrackingQuery(System.Configuration.ConfigurationManager.AppSettings["cs_tracking"]);

System.Workflow.Runtime.Tracking.SqlTrackingQueryOptions options =new System.Workflow.Runtime.Tracking.SqlTrackingQueryOptions();

System.Workflow.Runtime.Tracking.SqlTrackingWorkflowInstance sqlTrackingWorkFlowInstance =null;

if (stq.TryGetWorkflow(new System.Guid(this.dotNetWorkflow.InstanceId),out sqlTrackingWorkFlowInstance))

{

System.Collections.Generic.IList<System.Workflow.Runtime.Tracking.ActivityTrackingRecord> activityTrackingRecords = sqlTrackingWorkFlowInstance.ActivityEvents;

HtmlTableCell cell;

HtmlTableRow row;

foreach (System.Workflow.Runtime.Tracking.ActivityTrackingRecord activityTrackingRecordin activityTrackingRecords)

{

}


Method not found: 'System.Collections.Generic.IList`1<System.Workflow.Runtime.Tracking.ActivityTrackingRecord> System.Workflow.Runtime.Tracking.SqlTrackingWorkflowInstance.get_ActivityEvents()'.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.MissingMethodException: Method not found: 'System.Collections.Generic.IList`1<System.Workflow.Runtime.Tracking.ActivityTrackingRecord> System.Workflow.Runtime.Tracking.SqlTrackingWorkflowInstance.get_ActivityEvents()'.

Source Error:

Line 122: Line 123:Line 124: }Line 125: public override ArrayList Update() Line 126: {

Source File: Line:124

Stack Trace:

[MissingMethodException: Method not found: 'System.Collections.Generic.IList`1<System.Workflow.Runtime.Tracking.ActivityTrackingRecord> System.Workflow.Runtime.Tracking.SqlTrackingWorkflowInstance.get_ActivityEvents()'.] WorkListForms_DotNetWorkFlow.ShowWorkFlow() in g:\development\Mimi\Trunk\Mimi\WorkListForms\DotNetWorkFlow.ascx.cs:124 WorkListForms_DotNetWorkFlow.Page_Load(Object sender, EventArgs e) in g:\development\Mimi\Trunk\Mimi\WorkListForms\DotNetWorkFlow.ascx.cs:38 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Control.LoadRecursive() +131 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
[5312 byte] By [Mardo] at [2007-12-21]
# 1

Try removing and then re-adding your references to the workflow assemblies. It sounds like you might be holding onto an old copy somehow.

Matt

MattMilner-Pluralsight at 2007-9-10 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified