.NET 4.0 中长时间运行的工作流程添加所需引用时出现问题
我正在尝试完成以下“操作方法”,以便尝试并理解持久性在 .NET 4.0 工作流中的工作原理。
不幸的是,文档中似乎有错误,或者我的设置有问题,因为我无法添加对以下组件的引用:
- System.WorkflowServiceModel
- System.WorkflowService
这些组件在步骤 (1) 中指定“在工作流应用程序中启用持久性”部分的内容。
我尝试研究这个问题,但没有发现任何有用的东西。看来我不是唯一遇到问题的人:
Microsoft Connect - VS2010 缺少程序集 System.WorkflowServiceModel
这里的用户建议“问题在于使用了客户端配置文件”,但我不太明白这意味着什么。
我已将我的问题添加到该页面,如果 Microsoft 给出答案,我将在此处更新。
更新:
根据克里斯的评论,我找到了一个更好的链接,并将其放入评论中。我认为 Stack Overflow 上公认的方法是更新最初的问题?
I am attempting to complete the following "how-to" in order to try and understand how persistence works in .NET 4.0 Workflows.
MSDN - How to: Create and Run a Long Running Workflow
Unfortunately, there seems to be an error in the documentation or I have a problem with my setup, as I am unable to add references to the following components:
- System.WorkflowServiceModel
- System.WorkflowService
These components are specified in step (1) of the section "To enable persistence in a workflow application".
I tried researching this problem but didn't find anything very useful. It seems that I'm not the only person who has had problems:
Microsoft Connect - VS2010 Missing Assembly System.WorkflowServiceModel
A user here suggests that "the problem was that the client profile was used" but I don't really understand what this means.
I have added my question to that page and will update here if an answer is forthcoming from Microsoft.
Update:
Following Chris' comments, I found a better link which I put in a comment. I think the accepted approach on Stack Overflow is to update the initial question?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这似乎是文档中的错误,而不是您的设置问题。实际上,整篇文章似乎包含完全过时的信息 - 几乎没有内容似乎与 WF Beta 2 相关。我建议现在查找另一个网站。
This appears to be a bug in the documentation, not a problem with your setup. Actually, the whole article seems to contain completely outdated information - almost none of the content seems to be related to WF Beta 2. I would suggest looking up another site for now.
程序集已重命名/在 PDC 2008 和 Beta1 之间的一段时间进行了重组。查找 System.ServiceModel.Activities。
The assembly(ies) got renamed/reorganized some time between PDC 2008 and Beta1. Look for System.ServiceModel.Activities.