SharePoint Windows 工作流在部署时中断

发布于 2024-08-12 10:47:09 字数 3203 浏览 5 评论 0原文

我们为 SharePoint MOSS 开发了自定义视觉工作室工作流程。它为文档审批流程创建任务,并且在我们的开发机器上运行良好。我们正在使用一个主要工作流程活动和一个自定义子活动。我们使用属性上的绑定来将它们传递到整个工作流程,我们认为这些都是 Windows 工作流程的标准内容。

当我们将此工作流部署到我们的测试服务器(这是一个小型服务器场)时,我们的任务属性/工作流属性似乎都评估为空。

我们尝试了很多很多不同的方法来解决这个问题,包括以管理员帐户运行工作流程、在代码中手动重新创建任务属性等,但没有成功。

任何人都可以阐明可能出现的问题吗?下面详细介绍了错误,一切顺利,

下面的错误是内部错误,并且似乎指向使用内容类型创建任务时的错误(SPWinOETaskService.CreateTaskWithContentType )。

11/23/2009 19:09:54.47  w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 07ab6631-c656-4918-8ffe-7a09da3a3628  
    11/23/2009 19:09:54.47  w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Workflow.SPWinOETaskService.CreateTaskWithContentTypeInternal(Guid taskId, SPWorkflowTaskProperties properties, Boolean useDefaultContentType, SPContentTypeId ctid, HybridDictionary specialPermissions)     at Microsoft.SharePoint.Workflow.SPWinOETaskService.CreateTaskWithContentType(Guid taskId, SPWorkflowTaskProperties properties, String taskContentTypeId, HybridDictionary specialPermissions)     --- End of inner exception stack trace ---     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAtt...  
    11/23/2009 19:09:54.47* w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected ...ributes, RuntimeTypeHandle typeOwner)     at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at System.Workflow.Activities.CallExternalMethodActivity.Execute(Acti...  
    11/23/2009 19:09:54.47* w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected ...vityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()  

We have developed a custom visual studio workflow for SharePoint MOSS. It creates tasks for a document approval process and works fine on our development machines. We are using a main workflow activity and one custom child activity. We use binding on the properties to pass them throughout the workflow, all standard stuff for windows workflow, we think.

When we deploy this workflow to our test server, which is a small farm, our taskproperties/workflowproperties all seem to evaluate to null.

We have tried many, many different ways to solve this, including running the workflow as the admin account, manually recreating the the taskproperties in code etc. etc. without any success.

Can anyone shed any light on what could be the problem, the error is detailed below, all the best,

This error below is an Internal error, and seems to point to a error when a Task is created with a content type (SPWinOETaskService.CreateTaskWithContentType).

11/23/2009 19:09:54.47  w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 07ab6631-c656-4918-8ffe-7a09da3a3628  
    11/23/2009 19:09:54.47  w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.Workflow.SPWinOETaskService.CreateTaskWithContentTypeInternal(Guid taskId, SPWorkflowTaskProperties properties, Boolean useDefaultContentType, SPContentTypeId ctid, HybridDictionary specialPermissions)     at Microsoft.SharePoint.Workflow.SPWinOETaskService.CreateTaskWithContentType(Guid taskId, SPWorkflowTaskProperties properties, String taskContentTypeId, HybridDictionary specialPermissions)     --- End of inner exception stack trace ---     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAtt...  
    11/23/2009 19:09:54.47* w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected ...ributes, RuntimeTypeHandle typeOwner)     at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at System.Workflow.Activities.CallExternalMethodActivity.Execute(Acti...  
    11/23/2009 19:09:54.47* w3wp.exe (0x1FB8)                        0x1CDC Windows SharePoint Services    Workflow Infrastructure        98d4 Unexpected ...vityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()  

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

没有心的人 2024-08-19 10:47:09

由于错误是 CreateTaskWithContentType,您是否创建了开发计算机上可用但尚未部署到测试服务器的任何内容类型。

编辑

刚刚再次查看了您的错误消息。我想知道 SPWinOETaskService 是否为空。是否有与工作流相关的服务未在场上运行。

Since the error is CreateTaskWithContentType, have you created any content type which is available on the dev machine, but has not been deployed to the test server.

EDIT

Just had another look at your error message. I am wondering if SPWinOETaskService is what is null. Is there a service related to workflow that is not running on the farm.

渔村楼浪 2024-08-19 10:47:09

我们发现,如果尚未将任务内容类型添加到特定工作流任务列表中,则会出现此错误:

为此,请在工作流列表的高级设置中允许管理内容类型。

然后,您可以在管理列表屏幕上从现有内容类型中添加并选择您的自定义内容类型。

然后您的工作流程应该可以正常运行,不会出现错误。

We found that if we have not added the task content type to the specific workflow task list then we got this error:

To do this, in advanced settings for the workflow list, allow mamangement of content types.

You can then on the manage list screen, add from existing content types and select your custom one.

Your workflow should then work without error.

hth

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文