我也遇到相同的问题,把错误抛出应该是:“Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled”
参考代码:
ActivityXamlServicesSettings settings = new ActivityXamlServicesSettings
{
CompileExpressions = true
};
DynamicActivity<int> wf = ActivityXamlServices.Load(new StringReader(serializedAB), settings) as DynamicActivity
参考地址发不出去,自己去MSDN找。