无法解决,因为它依赖于“System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”。这不在当前的

编程入门 行业动态 更新时间:2024-10-06 08:25:29
本文介绍了无法解决,因为它依赖于“System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”。这不在当前的目标框架中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

尝试使用我添加的新Crystal Report构建项目时出现以下错误消息(这是项目中的第一个)。

警告9无法解析引用的程序集C:\Documents and Settings \rlolley\My Documents\Visual Studio 2010 \Projects\SMMS\Maintenance\bin\Debug\Maintenance.dll它依赖于System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a,它不在当前目标框架.NETFramework,Version = v4.0,Profile = Client中。请删除不在目标框架中的程序集的引用或考虑重新定位项目。

它试图告诉我什么。我已经尝试将目标框架更改为框架4客户端配置文件,我收到此错误:

错误8类型或命名空间名称'CrystalDecisions'不能发现(你错过了使用指令或汇编引用吗?)

我无法通过这个。 任何帮助将不胜感激... 谢谢

解决方案

它告诉你它找不到System.Web.dll 也许这会帮助你: social.msdn.microsoft/Forums/en/netfxappcompatprerelease/thread/ad71e8e5-3124-47de-89cb-97b1d2d4263a [ ^ ] davidsandor/?tag=/net-framework -4 [ ^ ]

这是关于框架的错误选择。阅读这篇文章有一个想法来解决它。 pathumf.blogspot/2011/07/how-to-add-crystal-report-for-visual.html [ ^ ]

I get the following error message when trying to build my project with a new Crystal Report I added (this is the first one in the project).

Warning 9 The referenced assembly "C:\Documents and Settings\rlolley\My Documents\Visual Studio 2010\Projects\SMMS\Maintenance\bin\Debug\Maintenance.dll" 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.

What is it trying to tell me. I have tried changing the targeted framework to framework 4 client profile, and I get this error:

Error 8 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)

I can''t get past this. Any help would be appreciated... Thanks

解决方案

It''s telling you that it cannot find the System.Web.dll maybe this wil help you: social.msdn.microsoft/Forums/en/netfxappcompatprerelease/thread/ad71e8e5-3124-47de-89cb-97b1d2d4263a[^] davidsandor/?tag=/net-framework-4[^]

This is regarding wrong selection of the Framework. Read this article to have an idea to solve it. pathumf.blogspot/2011/07/how-to-add-crystal-report-for-visual.html[^]

更多推荐

无法解决,因为它依赖于“System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f

本文发布于:2023-11-12 21:11:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582535.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:因为它   框架   这不   目标   依赖于

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!