2011-10-08 13 views
10

पर नहीं मिला है। मैंने 3.5 से 4.0 संस्करण से .NET को अपडेट किया है, लेकिन असेंबली System.Web को अपडेट करने के बाद अब और काम नहीं करता है। 3.5 संस्करण यह ठीक काम करता है का उपयोग करनाSystem.Web असेंबली .NET 4.0 संस्करण

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

बदलें पूर्ण नेट 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

देखें
15

मुझे लगता है कि आपके पास लक्ष्य ढांचे के लिए .NET 4.0 Client profile चयनित है। बस .Net 4.0

enter image description here

5

आप .net 4.0 ग्राहकों का प्रोफाइल, जो डेस्कटॉप उपयोगकर्ताओं के लिए एक .net "लाइट" है लक्ष्यीकरण रहे हैं करने के लिए स्विच। > अनुप्रयोग टैब - - पूर्ण .net 4.0 में स्विच करें System.Web

प्रोजेक्ट गुण पर प्राप्त करने के लिए> लक्ष्य फ्रेमवर्क

4

".NET Framework 4 क्लाइंट प्रोफ़ाइल" के बजाय "लक्ष्य फ्रेमवर्क" को ".NET Framework 4" बदलने का प्रयास करें।