开发者

WorkflowApplication generate unhandle exception in ASP.NET

开发者 https://www.devze.com 2023-03-23 08:54 出处:网络
am using simple persistence workflow application in ASP.NET when i try start workflow using WorkflowApplication invoker the .NET framework generate unhandled exception.

am using simple persistence workflow application in ASP.NET when i try start workflow using WorkflowApplication invoker the .NET framework generate unhandled exception.

the exception is:

Type 'VacationRe开发者_StackOverflow社区questWorkflow.VacationRequestModel' in Assembly 'VacationRequestWorkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=84fad1a74027a4c8' is not marked as serializable.

i used

ActivityXamlServices.Load(
                ActivityXamlServices.CreateReader(
                    new XamlXmlReader("*XAML path*",
                        new XamlXmlReaderSettings { LocalAssembly = Assembly.GetExecutingAssembly() })));

to resolve this issue but didn't work.

please advice.


Maybe I'm missing something, but isn't this as simple as marking your class Serializable, using the Serializable attribute?

0

精彩评论

暂无评论...
验证码 换一张
取 消