WF4 中的速度
如果我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 WF4 程序集中,在属性中更改目标框架:.NET Framework 4 Client Profile => .NET框架4。
In WF4 assembly, in properties change Target framework: .NET Framework 4 Client Profile => .NET Framework 4.