WF4 中的速度

发布于 2024-09-11 10:01:00 字数 663 浏览 2 评论 0原文

如果我使用 Microsoft.ApplicationServer.Caching.Client 和 Microsoft.ApplicationServer.Caching.Core 程序集,则会出现异常: 命名空间“Microsoft”中不存在类型或命名空间名称“ApplicationServer”(您是否缺少程序集引用?).....\CacheUtil.cs

我收到警告: 无法解析引用的程序集“Microsoft.ApplicationServer.Caching.Core,Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL”,因为它依赖于“System.Web,Version= 4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”,它不在当前目标框架“.NETFramework,Version=v4.0,Profile=Client”中。请删除对不在目标框架中的程序集的引用,或考虑重新定位您的项目。 WFReport

这发生在与 WF4 不同的程序集中。我想从单独的程序集 Asp.net Web 表单运行它。我不希望每个工作流程都使用公共缓存。(VS2010 .net 4.0)

出了什么问题?我该如何解决这个问题?

If I use Microsoft.ApplicationServer.Caching.Client and Microsoft.ApplicationServer.Caching.Core assembly I get exception:
The type or namespace name 'ApplicationServer' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) .....\CacheUtil.cs

And I get Warning:
The referenced assembly "Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. WFReport

This occurs in a separate assembly with WF4. And I want run it from a separate assembly Asp.net web forms.I wont that everyone workflow would use common cache.(VS2010 .net 4.0)

What's wrong? How do I fix this?

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

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

发布评论

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

评论(1

半夏半凉 2024-09-18 10:01:00

在 WF4 程序集中,在属性中更改目标框架:.NET Framework 4 Client Profile => .NET框架4。

In WF4 assembly, in properties change Target framework: .NET Framework 4 Client Profile => .NET Framework 4.

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