System.Web assembly is not found on .net 4.0 version

一笑奈何 提交于 2019-12-05 01:14:41
Muhammad Hasan Khan

Change the project from ClientProfile to full .NET 4.0

The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features. This enables faster deployment and a smaller install package for applications that target the .NET Framework 4 Client Profile.

See Differences between Microsoft .NET 4.0 full Framework and Client Profile

Bala R

I think you have .NET 4.0 Client profile selected for target framework. Just switch to .Net 4.0

You're targetting the .net 4.0 Client Profile, which is a .net "lite" for desktop users. Switch to full .net 4.0 to get at System.Web

Project Properties -> Application tab -> Target Framework

Try changing the "Target Framework" to be ".NET Framework 4" instead of ".NET Framework 4 Client Profile".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!