Hosting BPEL Workflow

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

While hosting the BPEL type of the workflow in Workflow Foundation you may get following error:

"The requested service System.Workflow.ComponentModel.Compiler.ITypeProvider is missing."

If you would like to understand why this error accures, you should take a look on this post. If you just want to work-around this problem
use following host:

static void Main(string[] args)
{

using(WorkflowRuntime workflowRuntime = new WorkflowRuntime())
{
AutoResetEvent waitHandle = new AutoResetEvent(false);
workflowRuntime.WorkflowCompleted += ..
workflowRuntime.WorkflowTerminated += ..

TypeProvider typeProvider =
new TypeProvider(workflowRuntime);

workflowRuntime.AddService(typeProvider);

WorkflowInstance instance =

workflowRuntime.CreateWorkflow(typeof(Process1));

instance.Start();

waitHandle.WaitOne();
}
}


Posted Nov 21 2007, 03:40 PM by Damir Dobric
Filed under: ,
developers.de is a .Net Community Blog powered by daenet GmbH.