Workflow Runtime Error

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

While starting the workflow you may encounter following error:

"Test method TestProject.WorkflowTest.TestWorkflow threw exception: System.InvalidOperationException: WorkflowRuntime container does not contain ExternalDataExchangeService."

This error is caused by the code similar to this one:

ExternalDataExchangeService dataService = new ExternalDataExchangeService();
dataService.AddService(new ExternalService());

To solve this problem use the code shown below:

ExternalDataExchangeService dataService = new ExternalDataExchangeService();

m_Runtime.AddService(dataService);

dataService.AddService(new ExternalService());


Posted Dec 10 2007, 02:28 PM by Damir Dobric
Filed under: ,
developers.de is a .Net Community Blog powered by daenet GmbH.