Solved

Visual Studio 2012 Warning regarding .net framework 3.5, 4

Posted on 2013-06-25
12
416 Views
Last Modified: 2013-07-12
Hi,

I have a project that is coded with a 3rd party reference (example.dll) namespace and I can't compile the code.  I receive:

The primary reference "3rdparty.client, version=0.0.0.0, ..." could not be resolved because it was built against the .netframework 4.0 framework.  This is a higher version than the currently targeted framework .netframework 3.5.

The only option available under Project -> project1 properties -> application tab, is .net framework 3.5.

I've went to the website it directed me to, but I can't install the pack kb2600211 because it's blocked by my system.

I'm not sure where to go from here.

Thanks in advance for the help.
0
Comment
Question by:jands
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
12 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39275750
did u try install .net 4.0?
0
 

Author Comment

by:jands
ID: 39275812
Yes, it says I already have 4.5 installed, so it wouldn't let me continue.
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39275931
open the Environment Variables, what are the values for TEMP and TMP?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jands
ID: 39276115
They are both pointing to %userprofile%\appdata\local\temp.
0
 

Author Comment

by:jands
ID: 39276117
The previous post was for the user.

The System variables are both pointed to c:\windows\temp.
0
 

Author Comment

by:jands
ID: 39282039
Anyone?
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39283744
Do u see in programs installed the .net 4.5?
0
 

Author Comment

by:jands
ID: 39290633
Yes...
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 39290931
Did u try to reinstall it?
0
 

Author Comment

by:jands
ID: 39293101
Yes.
0
 

Author Comment

by:jands
ID: 39293896
Found out SharePoint 2010 doesn't support .NET 4.0.

So, how can I create a visual web part with a reference to a namespace developed with 4.0?
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39297319
I would say you can't.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question