无法添加 System.Web.dll 引用 [英] Cannot add System.Web.dll reference

查看:57
本文介绍了无法添加 System.Web.dll 引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 System.Web.dll 程序集中包含的 HTTP 函数.但是,虽然该 dll 似乎与我的项目中 Visual Studio 2010 引用的所有其他 dll 位于同一目录中,但它无法链接并引发警告 - 找不到引用的组件System.Web".但是,该 dll 肯定与项目引用的所有其他文件夹位于同一文件夹中,并在浏览参考"模式下选择它允许我添加它 - 然后它无法填写路径"属性.难道我做错了什么?如何使 System.Web 在我的项目中可用?

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?

非常感谢任何帮助!

我在添加引用"窗口的 .Net 选项卡中没有任何对 System.Web 的引用.

I don't have any reference to System.Web in the .Net tab of the 'Add Reference' window.

推荐答案

如果您面向 .NET 3.5 或 4 客户端配置文件,您将看不到 ASP.NET 程序集.

If you target .NET 3.5 or 4 client profile, you won't see ASP.NET assemblies.

此外,您应该尝试在 System.Net 中使用 HTTP 类.

Besides, you should try to use HTTP classes in System.Net.

这篇关于无法添加 System.Web.dll 引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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