2009-11-24 56 views
2

我們爲SharePoint MOSS開發了一個自定義Visual Studio工作流程。它爲文檔批准過程創建任務,並在我們的開發機器上正常工作。我們正在使用主要工作流程活動和一個自定義的兒童活動。我們使用綁定屬性將它們傳遞給整個工作流程,我們認爲所有標準的Windows工作流程都可以通過。當我們部署SharePoint時,Windows工作流程中斷

當我們將此工作流程部署到我們的測試服務器(這是一個小型服務器場)時,我們的taskproperties/workflowproperties似乎都評估爲null。

我們嘗試了許多不同的方法來解決這個問題,包括以admin帳戶運行工作流程,在代碼中手動重新創建taskproperties等等,但沒有取得任何成功。

任何人都可以闡明可能是什麼問題,任何光線,錯誤詳述如下,萬事如意,

低於此錯誤是一個內部錯誤,而且似乎指向一個錯誤創建任務時與內容類型(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() 
+0

SharePoint是否偶然運行64位? – curtisk 2009-11-24 19:12:10

+0

它在開發機器上,在測試服務器上是32位。我們正在開發機器上的Visual Studio中編譯爲'Any CPU'。持續集成在部署測試時構建代碼。所有最好的 – 78lro 2009-11-24 19:28:48

回答

0

我們發現,如果我們還沒有添加任務內容類型的特定的工作流程任務列表,然後我們得到這個錯誤:

要做到這一點,在工作流列表高級設置,允許內容類型的mamangement。

然後,您可以在管理列表屏幕上添加現有內容類型並選擇您自定義的內容類型。

然後,您的工作流程應該沒有錯誤地工作。

hth

1

由於錯誤是CreateTaskWithContentType,你有沒有創建任何內容類型,其可在開發計算機上,但尚未部署到測試服務器。

編輯

剛把再看看你的錯誤消息。我想知道是否SPWinOETaskService是什麼是null。是否有與服務器場上未運行的工作流相關的服務?

+0

我們已確認內容類型和列已全部正確部署到兩臺機器上。創建任務的錯誤正在發生,因爲它需要「創建」的對象爲空......我們認爲! – 78lro 2009-11-24 20:41:34

+0

您知道應該爲工作流程運行哪些服務?我沒有任何喜悅地用Google搜索SPWinOETaskService?謝謝 – 78lro 2009-11-25 21:19:16

相關問題