如何恢复:工作流设计器遇到的问题与您的文档 [英] How to recover from : Workflow Designer encountered problems with your document

查看:652
本文介绍了如何恢复:工作流设计器遇到的问题与您的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与工作流的新手我创建工作流(VS2010中的工作流设计器)与中,我有一个WriteLine活动的序列。我与工作流创建参数,以便我在参数窗格中创建2个参数W / O的活动水平与做他们什么实验。 (值得注意的是,我没有对如何在工作流中使用参数的把握还)。不过,我救我的工作流,而工作流不显示任何可见的错误(红色圆圈与excalmation标记)。下一次我打开我的工作流程得到错误:

As a novice with workflows I create a workflow (in VS2010 workflow designer) with a sequence within which I have a writeline activity. I am experimenting with creating arguments for the workflow so I create 2 arguments in the argument pane w/o doing anything with them at the activity level. (Noteworthy that I dont have a grasp of how to use arguments in the workflow yet). However I save my workflow while the workflow does not show any visible errors( red circles with an excalmation mark). Next time I open the workflow I get the error :

工作流设计器遇到了你的文件的问题。
请检查该文件无效内容,命名空间,引用或参考循环。

Workflow Designer encountered problems with your document . Please check the document for invalid content, namespaces,references, or reference loops.

这似乎使最终因为没有办法,我可以有机会获得我原来的工作流程,可能纠正我的错误(无论它们是什么)。当我点击详细向下箭头我看到这一点:找不到成员'A'的_8684类型。

And that seems so final because there is no way that I can have access to my original workflow to possibly correct my error (whatever they might be). when I click on the detail down arrow I see this: Could not find member 'a' in type _8684 .

一个是两个INT32论点,我不得不在工作流,但我从来没有在任何活动中的一个。

a is one of the two int32 arguments that I had in the workflow but which I never used in any of the activities.

我想AP preciate任何帮助。先谢谢了。

I would appreciate any help. Thanks in advance.

推荐答案

看来你要重新托管的工作流设计,它不是为你生成正确的XAML。

It seems you're trying to re-host your Workflow Designer and it's not generating correct XAML for you.

错误找不到成员< MNAME>在类型<&TNAME GT; 如果工作流设计实例直接载入容器活动(顺序,流程图等),而不是第一个使用ActivityBuilder通常发生

The error Could not find member <mname> in type <tname> commonly occurs if the Workflow Designer instance is directly loading a container activity (sequence, flowchart etc.) instead of using an ActivityBuilder first.

如果您已经使用了ActivityBuilder,那么你可能已经错过了给它的根系活力空间。 。正确的方式来增加 System.Activities presentation.WorkflowDesigner 是:

If you're already using an ActivityBuilder then you may have missed giving it the root activity namespace. The correct way to add System.Activities.Presentation.WorkflowDesigner is:

this.workflowDesigner = new WorkflowDesigner();
this.workflowDesigner.Load(new ActivityBuilder { Implementation = new Sequence(),
                                                 Name = "RootNamespace.RootActivity" });

随着名称设置不当WF设计师会(像你的情况_8684)停止使用随机类型和生成保存/序列正确的XAML。这会帮助你摆脱空间的错误。

With the Name set properly WF designer would stop using random types (like _8684 in your case) and generate correct XAML on save/serialization. This should help you get rid of the namespace errors.

这篇关于如何恢复:工作流设计器遇到的问题与您的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆