我們爲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()
SharePoint是否偶然運行64位? – curtisk 2009-11-24 19:12:10
它在開發機器上,在測試服務器上是32位。我們正在開發機器上的Visual Studio中編譯爲'Any CPU'。持續集成在部署測試時構建代碼。所有最好的 – 78lro 2009-11-24 19:28:48