2011-10-08 20 views
10

Actualicé .NET desde 3.5 a 4.0 versión, pero después de actualizar el ensamblaje System.Web ya no funciona.El ensamblado System.Web no se encuentra en .net 4.0 versión

Estoy recibiendo el siguiente error:

Warning 1 Could not resolve assembly "System.Web". The assembly is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

Usando la versión 3.5 funciona bien. ¿Cómo puedo arreglar esto?

+1

Oriente la versión completa, no la versión del cliente. –

Respuesta

17

cambiar el proyecto de ClientProfile a plena .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.

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

15

Creo que tiene .NET 4.0 Client profile seleccionado para el marco de destino. Simplemente acceda al .Net 4.0

enter image description here

5

Estas apuntan el Perfil de cliente .NET 4.0, que es un "ligero" .net para usuarios de escritorio. Cambiar a plena .NET 4.0 para llegar a System.Web

Proyecto Propiedades - pestaña> Aplicación -> Marco de destino

4

Intente cambiar el "Marco de destino" para que sea ".NET Framework 4" en lugar de ".NET Framework 4 Client Profile".

Cuestiones relacionadas