Using VS 2010 RTM. I have rehosted the desginer and provided a "test" button which runs the WF shown in the desginer, the code for running the WF is simple: void
ActivityBuilder designerBuilder = (ActivityBuilder)WFDesinger.Context.Services.GetService<ModelTreeManager>().Root.GetCurrentValue();
WorkflowInvoker invoker = new
se = invoker.Invoke();
it works fine, BUTThe root activity is a flowchart , if I start messing with the desginer and adding sequences and going back and forth to child activities and try to test(run) the WF I get the exception:The activity with display name 'Flowchart' has already been associated with an instance. Once associated with an instance an activity's metadata cannot be manipulated. This error might also indicate that you are attempting to execute a workflow whose root activity is actually part of another workflow.
View Complete Post