MOSS 工作流 vs2008+win2008
工作流,这一周都在练习,WF的出现的确让工作流程显示得更加方便和明朗,
今天的日志,也没有特别要写方法和实例,这一周都在看实例,其中有个非常不解的地方,就是为什么老是提示 "启动失败(正在重启中)",和例子一模一样的样,问题出在哪里,我一行一行的对照都没有写错,就是DEBUG不到问题,查看日志提示:
06/25/2010 21:43:10.71 w3wp.exe (0x14A0) 0x0414 Windows SharePoint Services Workflow Infrastructure 936l High Engine RunWorkflow: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: 工作流验证失败。 在 System.Workflow.Runtime.WorkflowDefinitionDispenser.ValidateDefinition(Activity root, Boolean isNewType, ITypeProvider typeProvider) 在 System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type workflowType, Boolean createDefinition, Boolean initForRuntime) 在 System.Workflow.Runtime.WorkflowDefinitionDispenser.MruCache.GetOrGenerateDefinition(Type type, String xomlText, String rulesText, Byte[] md5Codes, Boolean initForRuntime, Boolean& exist) 在 System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type workflowType, Boolean createNew, Boolean initForRuntime) 在 System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId, C...
06/25/2010 21:43:10.71* w3wp.exe (0x14A0) 0x0414 Windows SharePoint Services Workflow Infrastructure 936l High ...reationContext context, WorkflowExecutor executor, WorkflowInstance workflowInstance) 在 System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext context, WorkflowInstance workflowInstance) 在 System.Workflow.Runtime.WorkflowRuntime.GetWorkflowExecutor(Guid instanceId, CreationContext context) 在 System.Workflow.Runtime.WorkflowRuntime.InternalCreateWorkflow(CreationContext context, Guid instanceId) 在 System.Workflow.Runtime.WorkflowRuntime.CreateWorkflow(Type workflowType, Dictionary`2 namedArgumentValues, Guid instanceId) 在 Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e) 在 Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(Guid trackingId, SPWorkflowHostService host, SPWorkflow workflow, Coll...
06/25/2010 21:43:10.71* w3wp.exe (0x14A0) 0x0414 Windows SharePoint Services Workflow Infrastructure 936l High ...ection`1 events, TimeSpan timeOut)
这个问题就出现WSPBuilderProject1csproj 这个文件里面
最近两行改成这样就OK了
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets" />