NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
vsanghvi
Posts: 4
0 Kudos
Accepted Solution

I am trying to reference NationalInstruments.DAQmx in my C# application but getting build error

I am trying to reference NationalInstruments.DAQmx.dll in my C# application but getting following build error. Any idea how to fix this issue?

 

Warning 1 The referenced assembly "NationalInstruments.DAQmx, Version=9.4.40.50, Culture=neutral, PublicKeyToken=dc6ad606294fc298, processorArchitecture=x86" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which 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. NITesting

Member
vsanghvi
Posts: 4
0 Kudos

Re: I am trying to reference NationalInstruments.DAQmx in my C# application but getting build error

Found the issue myself. Thanks!

Active Participant
Fiston
Posts: 537
0 Kudos

Re: I am trying to reference NationalInstruments.DAQmx in my C# application but getting build error

Hi,

I have the same problem.

Can you give me the solution please.

Thank you.


Julien GELAY
Tecsup
Technicien BE - Software
Active Participant
D_Biel
Posts: 640

Re: I am trying to reference NationalInstruments.DAQmx in my C# application but getting build error

Julien,

 

If you have the exact same error message as posted above, it looks like the problem was that the project was configured for the .NET 4.0 Client Profile. The .NET 4.0 Client Profile is a lightweight version of the .NET framework, but National Instruments assemblies require the full .NET 4.0 framework. You can configure your project (even after it is created) to use the full .NET version in Project Properties>>Application>>Target framework in C# and Project Properties>>Compile>>Advanced Compile Options...>>Target framework in VB .NET.

 

If this is not the same error message you are receiving, or if this does not resolve the issue, could you please post the error message in your response?

National Instruments
Product Support Engineer
Member
ranjith_poladi
Posts: 5
0 Kudos

Re: I am trying to reference NationalInstruments.DAQmx in my C# application but getting build error

Thanks, helped me kick-start building my application.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page