缺少"System.web"ASP.NET中的参考 [英] Missing "System.web" reference in ASP.NET
问题描述
在我的项目中,我遇到了这个错误:
Within my project I have gotten this error:
错误1类型或名称空间名称'UI'在名称空间'System.Web'中不存在(您是否缺少程序集引用?)
Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
因此,基本上,我尝试添加"system.web"作为对我的项目的引用,但是我的
So, basically I attempted to add "system.web" as a reference to my project, but there is no such thing exist in my .NET framework.
如何安装"system.web"?
How can I install "system.web"?
推荐答案
如果要添加引用的项目类型不是Web项目,则可能需要右键单击该项目,然后将目标框架从<一个href ="http://en.wikipedia.org/wiki/.NET_Framework" rel ="noreferrer">.NET 4客户端到.NET 4.
If the kind of project the reference is being added to is not a web project, then you may need to right click the project and change the target framework from .NET 4 Client to just .NET 4.
这篇关于缺少"System.web"ASP.NET中的参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!