Solved

Visual Studio 2012 Warning regarding .net framework 3.5, 4

Posted on 2013-06-25
12
413 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
  • 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error "String or binary data would be truncated" in an update on a datatable 7 35
Exit the loop 4 42
get row value in vb.net 4 14
VB.Net - Get ColumnNames of SQL Table 4 10
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now