This project is read-only.

ProcessOrder.xoml (workflow) error

Topics: Architecture
Apr 23, 2007 at 1:31 PM
Opening DinnerNow.OrderProcessing.Workflows.ProcessOrder.xoml throws error:

System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationException: CreateInstance failed for type 'DinnerNow.OrderProcessing.Workflow.Activities.SaveOrderActivity'. Exception has been thrown by the target of an invocation..

As a result the workflow cannot be viewed in visual studio properly. Removing the following 2 lines of workflow definition allows the workflow to be displayed in the designer:

<ns0:SaveOrderActivity x:Name="saveOrderActivity1" IncomingOrder="{ActivityBind ProcessOrder,Path=IncomingOrder}" />
<ns0:SplitOrdersActivity x:Name="splitOrdersActivity1" IncomingOrder="{ActivityBind ProcessOrder,Path=IncomingOrder}" SplitOrders="{ActivityBind ProcessOrder,Path=SplitOrders}" />

The problem lies either with the class definiton of the activity or the xoml.

Does anyone else have this problem or know how to fix it?
Apr 23, 2007 at 4:29 PM
A reinstallation and rebuild appears to have fixed the error . . .