无法解决,因为它依赖于“System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”。这不在当前的目标框架中 [英] 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

查看:211
本文介绍了无法解决,因为它依赖于“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中。请删除不在目标框架中的程序集的引用或考虑重新定位项目。



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

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



我无法通过这个。

任何帮助将不胜感激...

谢谢

解决方案

它告诉你它找不到System.Web.dll

也许这会帮助你:

http://social.msdn.microsoft.com/Forums/en/netfxappcompatprerelease/thread/ad71e8e5-3124-47de-89cb-97b1d2d4263a [ ^ ]

http://davidsandor.com/?tag=/net-framework -4 [ ^ ]


这是关于.net框架的错误选择。阅读这篇文章有一个想法来解决它。



http://pathumf.blogspot.com/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 .net 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:
http://social.msdn.microsoft.com/Forums/en/netfxappcompatprerelease/thread/ad71e8e5-3124-47de-89cb-97b1d2d4263a[^]
http://davidsandor.com/?tag=/net-framework-4[^]


This is regarding wrong selection of the .net Framework. Read this article to have an idea to solve it.

http://pathumf.blogspot.com/2011/07/how-to-add-crystal-report-for-visual.html[^]


这篇关于无法解决,因为它依赖于“System.Web,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a”。这不在当前的目标框架中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆