无法添加System.Web.dll的引用 [英] Cannot add System.Web.dll reference
问题描述
我试图使用包含在System.Web.dll程序集的HTTP的功能。然而,尽管该dll似乎在同一目录下存在其他所有DLL的Visual Studio在我的项目2010年的参考,它不能链接,并提出一个警告 - 引用的组件的System.Web无法找到。该DLL,但是,肯定是存在的同一个文件夹中的所有其他由项目引用,并在浏览参考模式,选择它可以让我添加它 - 那么它不能填写路径属性。难道我做错了什么?如何使现有的System.Web在我的项目?
任何帮助深表感谢!
编辑:我不具备的添加引用窗口
如果你的目标.NET 3.5或4客户端配置文件,你不会看到ASP.NET组件。
此外,你应该尝试使用HTTP类System.Net。
I'm trying to use the HTTP functions contained in the System.Web.dll assembly. However, whilst the dll seems to exist in the same directory as every other dll Visual Studio 2010 references in my project, it fails to link in and raises a warning - "The referenced component 'System.Web' could not be found". The dll, however, is definitely there within the same folder as all others referenced by the project and selecting it in 'browse for reference' mode allows me to add it - it then fails to fill in the 'Path' property. Am I doing something wrong? How can I make System.Web available in my project?
Any help is much appreciated!
Edit: I don't have any reference to System.Web in the .Net tab of the 'Add Reference' window.
If you target .NET 3.5 or 4 client profile, you won't see ASP.NET assemblies.
Besides, you should try to use HTTP classes in System.Net.
这篇关于无法添加System.Web.dll的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!