使用 c# 表达式的 XAMLX 工作流 [英] XAMLX Workflow with c# expressions
问题描述
我正在 vs2012/.Net 4.5/WF 4.5 中开发自托管工作流,并且很难弄清楚以下消息
I'm developing a self host workflow in vs2012/.Net 4.5/WF 4.5 and having quite a hard time figuring out the following message
表达式活动类型CSharpValue`1"需要编译才能运行.请确保工作流已编译.
Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled.
当我调用由服务引用生成的活动时会发生此错误(当您添加 WCF 服务引用时,端点上的每个操作都成为一个活动).
This error happens when i call a activity generated by a service reference (When you add a WCF service reference, each action on the endpoint become a activity).
在 MSDN 中环顾四周,我发现了这些文章:
Looking around in MSDN i've came across these articles:
- http://msdn.microsoft.com/en-us/library/ee358749.aspx
- http://msdn.microsoft.com/en-us/library/29110be7-f4e3-407e-8dbe-78102eb21115#CodeWorkflows
他们说
当工作流服务托管在 IIS 或 WAS 中时,则不需要额外的步骤,但如果 XAML 工作流服务是自托管的,则必须编译 C# 表达式
When a workflow service is hosted in IIS or WAS then no additional steps are required, but if the XAML workflow service is self-hosted, then the C# expressions must be compiled
所以,我终于得到了我的问题:我应该怎么做才能按 F5 并调试我的工作流,让它在 IIS 上运行?并停止这个该死的例外......
So, i finally get to my question: What should I do so i can hit F5 and debug my workflow, having it run on IIS? and stop this god damn exception...
我尝试转到项目配置并设置为使用本地 IIS,如下所示:
I've tried to go to the project config and set to use local IIS as follow:
但由于我仍然收到错误,我认为它不起作用...
but since i still get the error i assume it's not working...
推荐答案
尽管文章中提到了在 IIS/WAS 上运行的内容,但我只在我实施了结构建议时才设法运行工作流......这不是答案问题......它更像是一种解决方法......
Despite what the article said about running on IIS/WAS I only managed to run the workflow when I implemented the fabric sugested... this is not an answer for the question... its more like a workaround...
这篇关于使用 c# 表达式的 XAMLX 工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!