工作流程 4.0 参数错误

发布于 2024-07-21 18:04:58 字数 502 浏览 4 评论 0原文

我在工作流程中遇到两个错误,其中一个我认为是由 VS2010 编译中的错误引起的,其

错误 1 ​​无法解析可附加成员 {clr-namespace:;}Flowchart1.requestType C:\Documents and Settings\Hilliard\我的 Documents\Visual Studio 10\Projects\WorkflowConsoleApplication1\WorkflowConsoleApplication1\Flowchart1.xaml WorkflowConsoleApplication1

该错误通常会在连续两次构建后消失。 我不知道它是否相关,但是一旦工作流程在新的

“无法设置未知成员'requestType'。Line:3 Offset:4”中的部分类中运行,就会引发另一个错误。

如果我在这里做错了什么,有人知道吗? 我只想将两个参数传递到我的工作流程中并在整个工作流程中使用它们。 现在,工作流程甚至不会加载,因为他们在工作流程中进行了保护。

I'm having two errors with workflow, one I think is caused by a bug in the compling with VS2010, its

Error 1 Could not resolve attachable member {clr-namespace:;}Flowchart1.requestType C:\Documents and Settings\Hilliard\my documents\visual studio 10\Projects\WorkflowConsoleApplication1\WorkflowConsoleApplication1\Flowchart1.xaml WorkflowConsoleApplication1

That error usually goes away after two builds in a row. I don't know if its related but another error gets thrown once the workflow runs in the Partial Class in the new

"Cannot set unknown Member 'requestType'. Line:3 Offset:4".

Anyone have any clue if I'm doing something wrong here? I just want to pass in two parameters into my workflow and use them throughout the workflow. Right now the workflow won't even load as them defiend in the workflow.

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

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

发布评论

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

评论(2

破晓 2024-07-28 18:04:58

很难从您的描述中分辨出这些信息,我认为您确实需要添加更多详细信息:
- 你如何声明 requestType?
- 您如何将参数传递到您的工作流程中?
-您收到编译错误的 XAML 是什么?

您还可以尝试在 WF 4.0 Beta1 的 MS 论坛上提问... http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/threads

It's hard to tell this information from your description, I think you really need to add more details:
-how are you declaring requestType?
-how are you passing the arguments in to your workflow?
-what is the XAML you are getting the compile error from?

You could also try asking your question on the MS forum for WF 4.0 Beta1... http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/threads

新人笑 2024-07-28 18:04:58

通过错误消息中的“{clr-namespace:;}”,我怀疑您引用了当前程序集中的某个类(例如自定义活动或编译程序集中的类型)。

如果是这种情况,那么只需继续拆分程序集,并将自定义活动和/或类型(由工作流实例引用)移动到新活动和/或类型中。

by that "{clr-namespace:;}" you have in your error message, i suspect you're refering to some class within your current assembly (say a custom activity or a type from within your compiling assembly).

if that's the case, then simply go ahead with splitting your assembly, and moving your custom activities and/or types (which are referenced by your workflow instance) into the new one.

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