08-11-2011 03:24 PM
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=126.96.36.199, Culture=neutral, PublicKeyToken=dc6ad606294fc298, processorArchitecture=x86" could not be resolved because it has a dependency on "System.Web, Version=188.8.131.52, 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
Solved! Go to Solution.
09-07-2011 05:53 AM
I have the same problem.
Can you give me the solution please.
09-07-2011 06:45 PM
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?