序列化的异常

问题描述:启动工作流的时候,总是失败。

在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异常引起的。

posted @ 2011-06-27 16:48  风影极光  阅读(241)  评论(0编辑  收藏  举报