如何处理“被引用的组件”引用“找不到。”
所以我以前从未遇到过这种类型的错误(警告),并且我不确定如何准确地纠正该问题。当然,由于这个警告,当我尝试调用任何需要此引用的内容时,会出现几个错误。
我得到的警告是:
"the referenced component "Telerik.Web.UI" could not be found."
我对这个问题的疑问是什么,Visual Studio 无法找到参考的原因是什么,即使它看起来在那里?
为了使这个特定的参考起作用,我需要获得额外的东西吗?
我究竟该如何解决这个问题?
另外作为一个附带问题:我究竟该如何处理这个问题以供 Visual Studio 参考,或者解决这个问题需要执行哪些步骤?
更新1:
好吧,在花了一些时间搞乱它之后,我最终只是删除了参考文献并阅读了它。
这解决了问题,但是我仍然有兴趣了解为什么会发生这种情况?
因此要考虑的新问题是:为什么即使引用位于正确的位置,也会被视为“未找到”?
更新2:
好的,继续参考问题,我发现这个问题很有趣,但我不知道为什么会发生这种情况。所以我的问题是我正在尝试使用参考
CrystalDecisions.CrystalReports.Engine
此引用的路径是:
C:\Program Files\Business Objects\Common\2.8\managed\CrystalDecisions.CrystalReports.Engine.dll
所以我想要做的是使用此相同的引用,除了而不是 2.8\managed*
我想使用 commons 目录中 4.0 目录中的此引用的版本。没问题,我所要做的就是删除当前引用,然后在 4.0 目录中手动浏览它。然而,当我这样做时,我最终在属性文件夹中的路径继续说它来自这个位置:
C:\Program Files\Business Objects\Common\2.8\managed\CrystalDecisions.CrystalReports.Engine.dll
我想知道的是为什么会发生这种情况?这是否意味着我仍然没有获得正确的参考文件夹,我该如何解决这个问题?
非常感谢任何有关如何解决此问题的帮助或建议。 谢谢。
So i have never encountered this type of error(well warning) before and i am not sure how exactly to go about rectifying the issue. Of course due to this warning several errors come up when i attempt to call anything that requires this reference.
The warning i get is:
"the referenced component "Telerik.Web.UI" could not be found."
What my questions are about this problem, are what is the reason for Visual Studio to be unable to find a reference even though it appears to be there?
Is there something extra i need to obtain in order for this particular reference to work?
How exactly would i go about fixing this issue?
Also as a side question: how exactly would i have go about dealing with this issue for any reference with Visual Studio, or what would be the steps to go through in order to solve this problem?
Update 1:
Okay so after spending some time messing around with it i ended up just deleting the reference and readding it.
This solved the problem, however i am still interested in understanding why this would occur?
So new question to be considered: Why would a reference be considered as "not found" even though it is in the correct location?
Update 2:
Okay so continuing with reference issues, i found this one to be interesting and i have no idea why it is occuring. So my problem is that i am attempting to use the reference
CrystalDecisions.CrystalReports.Engine
The pathway for this reference is:
C:\Program Files\Business Objects\Common\2.8\managed\CrystalDecisions.CrystalReports.Engine.dll
So what i want to do is use this same reference, except instead of the 2.8\managed*
I want to use the version of this reference from the 4.0 directory in the commons directory. No problem all i have to do is delete the current reference and just manually browse for this in the 4.0 directory. However, when i do this i end up having the pathway in the properties folder continue to say it's coming from this location:
C:\Program Files\Business Objects\Common\2.8\managed\CrystalDecisions.CrystalReports.Engine.dll
What i would like to know is why is this happening? Does it mean that i am still not obtainning the correct reference folder and how do i go about correcting this problem?
Any help or suggestions on how to solve this problem are greatly appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您的项目未配置为使用客户端配置文件。
右键单击您的项目并选择属性。单击应用程序选项卡。在“目标框架”框中,选择您想要定位的任何框架,但最后没有
Client profile
的框架。这个答案是一个很好的资源,解释了为什么客户端配置文件不能在您的情况下使用:引用的项目x不存在
Make sure your project isn't configured to use the Client Profile.
Right click on your project and select Properties. Click the Application tab. In the "Target framework" box, select whatever framework you want to target, but the one without
Client profile
at the end.This answer is a great resource that explains why the Client Profile can't be used in your case: The referenced project x does not exists