当我尝试使用启动工作流程时,我在ASP.NET中使用简单的持久性工作流应用程序 WorkflowApp Invoker .NET框架生成未处理的异常。
例外是:
Type 'VacationRequestWorkflow.VacationRequestModel' in Assembly 'VacationRequestWorkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=84fad1a74027a4c8' is not marked as serializable.
我用过
ActivityXamlServices.Load(
ActivityXamlServices.CreateReader(
new XamlXmlReader("*XAML path*",
new XamlXmlReaderSettings { LocalAssembly = Assembly.GetExecutingAssembly() })));
解决此问题但无效。
请告知。