Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

C# Express: DAQmx.dll targets a different processor/ assembly not referenced.

Hi,

 

My apologies for the double post, but I am having warning adn errors in Visual C# 2010 Express that I cannot resolve.

 

Warnings:

Referenced assembly 'NationalInstruments.Common.Native.dll' targets a different processor'

Referenced assembly 'NationalInstruments.DAQmx.dll' targets a different processor' 

 

Errors:

The type 'NationalInstruments.ISupportSynchronizationContext' is defined in an assembly that is not refereced. You must add a reference to assembly 'NationalInstruments.COmmon, Version =9.0.40.610, Culture=neutal, PublicKeyToken=dc6ad606294fc298'.

 

The type   'NationalInstruments.ISupportSynchronizeCallBacks' is defeined in as assembly that is not referenced.  You must add a reference to assembly 'NationalInstruments.Common, Version=9.0.40.610, Culture=neutral, PublicKeyToken=dc6ad606294fc298'.  

 

I have tried referencing the DAQ assemblies located at:

 

C:\Program Files (x86)\National Instruments\MeasurementStudioVS2010\DotNET\ Assemblies (64-bit)\Current\NationalInstruments.Common.Native.dll

C:\Program Files (x86)\National Instruments\MeasurementStudioVS2010\DotNET\ Assemblies (64-bit)\Current\NationalInstruments.DAQmx.dll  

 

I have also tried using the directories:

C:\Program Files (x86)\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies (64-bit)\9.0.40.610\

 

and have also tried adding the *.dll's to the same directory as my code.

 

In an attempt to change the target processor in Express, I have tried adding:

{PlatformTarget>x86<PlatformTarget>

in the project file of the XML editor as I read on another forum.

 

Any help and suggestions are greatly appreciated.

 

Thanks. 

0 Kudos
Message 1 of 4
(4,476 Views)

In your project properties you must use .NET Framework 4 as Target framework,

not .NET Framework 4 Client Profile!

 

 

I hope this was what you need.

0 Kudos
Message 2 of 4
(4,363 Views)

Hello,

 

I too am having the same problems as described previously, but the resolution described has not provided respite.

 

I have included an english version of the example settings and errors as an example.

 

Please, any suggestion would be tendered with an epiphanic moment!

 

Thank you!

 

Marcus

0 Kudos
Message 3 of 4
(3,777 Views)

Hi,

 

Are you seeing the same targeting issues as the previous issue? or are you only seeing the assembly is not referenced issue?

 

Why Am I Getting a Warning Saying My Referenced Assembly Is Targeting a Different Processor?

http://digital.ni.com/public.nsf/allkb/63DDFC99B9951B418625796E002DDB09?OpenDocument

 

Additionally, do you have NationalInstruments.Common Version 9.0.40.610 referenced or is there a different version currently installed? Also i notice you have NationalInstruments.Common.Native referenced, you may have to reference NationalInstruments.Common instead. What versions Visual Studio and Measurement Studio are you using?

 

 

Also, if you create a new thread about this issue, it is much more likely to get noticed by forum members and answered quickly. It would be a good idea to provide a link to this thread in that post as well as details about the specific errors and questions from above and when they are recieved.

 

Evan See
National Instruments
0 Kudos
Message 4 of 4
(3,735 Views)