序列化的异常
问题描述:启动工作流的时候,总是失败。
在CreatTask的Activity中添加此事件捕捉异常:
protected override ActivityExecutionStatus HandleFault(ActivityExecutionContext executionContext, Exception exception)
{
return base.HandleFault(executionContext, exception);
}
单步调试异常信息
exception = {"Type 'Microsoft.SharePoint.SPListItem' in Assembly 'Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' is not marked as serializable."}
处理办法:Taskform异常引起的。