2011-10-08 3 views
10

.NET을 3.5에서 4.0 버전으로 업데이트했지만 어셈블리 업데이트 후 System.Web이 더 이상 작동하지 않습니다. 그것을 잘 작동 3.5 버전을 사용.net 4.0 버전에서 System.Web 어셈블리를 찾을 수 없습니다.

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.

:

나는 다음과 같은 오류를 받고 있어요. 이 문제를 어떻게 해결할 수 있습니까?

+1

클라이언트 버전이 아닌 전체 버전을 대상으로 지정하십시오. –

답변

17

변경 전체 .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.

에 ClientProfile에서 프로젝트가 Differences between Microsoft .NET 4.0 full Framework and Client Profile

를 참조 -> 응용 프로그램 탭 - 전체 .NET 4.0로 전환 System.Web

프로젝트 속성에서 얻을 수 있습니다

15

대상 프레임 워크로 .NET 4.0 Client profile이 (가) 있다고 생각합니다. 그냥 .Net 4.0

enter image description here

5

당신은 데스크탑 사용자를위한 .NET "라이트"입니다 .NET 4.0 클라이언트 프로파일을 표적으로하고로 전환합니다. > 대상 프레임 워크

4

"대상 프레임 워크"를 ".NET Framework 4 클라이언트 프로필"대신 ".NET Framework 4"로 변경하십시오.

관련 문제