Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

primary reference higher version error when migrating to VS2010/MS2010

Solved!
Go to solution

I just upgraded my XP/VS2008/MS2008 to W7/VS2010/MS2010 with DAQmx 9.2.3.

 

I am getting the following warning (lots of them):

The primary reference "NationalInstruments.UI, Version 9.0.40.292, Culture=nuetral.....could not be resolved because it has an indirect dependency on the .NET Framework assembly "System, Version 4.0.0.0,Culture.....which has a higher version "4.0.0.0" than the version 2.0.0.0 in the current target framework.

 

What do I need to update/install to fix this?

 

I'm also getting a non-NI related error:

 

Could not load file or assembly ....SMDiagnostics\v4.0_4.0.0.0.... This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

 

Thanks,

 

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 1 of 3
(6,088 Views)
Solution
Accepted by topic author DieselPower

Hey Michael -

 

It seems like you just need to go into your project options and change the Target Framework from what it is (2.0?) to 4.0.

 

C#

NickB0006 2011-01-20.png

 

VB.NET

NickB0007 2011-01-20.png

 

NickB

National Instruments

Message 2 of 3
(6,081 Views)

That worked, and deleting the file I couldn't modidy worked as well.  Thanks!

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 3 of 3
(6,048 Views)