Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement studio 8.6.1 Error after upgrade from 8.6

 

After I installed NI Measurement Studio 8.6.1 upgrade from 8.6, I got following error when I started new NI-DAQ Windows Application project with File/New/Project/Measurement Studio/NI DAQ Windows Application

 

Could not load file or assembly 'NationalInstruments.Common, Version=8.5.35.149, Culture=neutral, PublicKeyToken=18cbae0f9955702a' or one of its dependencies. The system cannot find the file specified

 

Exception Name

FileNotFoundException

 

 Stack Trace

at NationalInstruments.DAQmx.ComponentModel.Design.TaskComboBox..ctor()

at NationalInstruments.MeasurementStudio.Tools.DotNET.DAQmx.DaqAddComponentWizardStepControl.InitializeComponent()

at NationalInstruments.MeasurementStudio.Tools.DotNET.DAQmx.DaqAddComponentWizardStepControl..ctor()

at NationalInstruments.MeasurementStudio.Tools.DotNET.DAQmx.DaqWizard.AddDaqComponentWizardStep.CreateControl()

at NationalInstruments.MeasurementStudio.WizardFramework.WizardDialog..ctor(IServiceProvider serviceProvider, String dlgTitle, List`1 wizardSteps)

at NationalInstruments.MeasurementStudio.Tools.DotNET.DAQmx.DaqWizard.RunAddDaqComponentWizard()

at NationalInstruments.MeasurementStudio.Tools.DotNET.DAQmx.DaqWizard

 

I can not start any new Windows project with NI-DAQ template. It looks like there are some conflicts between old 8.6 and new 8.6.1 version of Measurement Studio for Visual Studio 2008. I tried uninstalling and installing of NI Measurement Studio and Visual Studio 2008 three times but the same error appears. It seems that there are some incomplete uninstall of 8.6 and 8.6.1. Can you find solution?

Thanks in advance.

 

 

0 Kudos
Message 1 of 4
(3,837 Views)

Hi,

 

I would first try to delete the build folder for the Code you are running and recompiling.

 

If this does not help, try reinstalling the DAQmx driver and ensure that you install support for Measurement Studio. Then try navigating to the directory that contains the DAQmx example code and launch the project from that folder.

 

-Adri K

 

Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 2 of 4
(3,821 Views)

Look at your project references to see what version and the location of the DLL that is expected.  Go to Project->Properties and the References tab.  It will show the version and the location of the NationalInstruments.Common reference.  Validate that it is in the proper location.  The upgrade may have updated that DLL as well and your project is still looking for the old one.  You can try setting the Specific Version flag to false for the DLL but I've never had much luck with that.  Another thing to try is to remove the reference to the DLL from your project and re-add the one that is installed.

 

Tom

Message Edited by Tom Sedlack on 06-01-2009 07:13 AM
0 Kudos
Message 3 of 4
(3,794 Views)

Look at your project references to see what version and the location of the DLL that is expectedGo to Project->Properties and the References tabIt will show the version and the location of the NationalInstruments.Common referenceValidate that it is in the proper locationThe upgrade may have updated that DLL as well and your project is still looking for the old oneYou can try setting the Specific Version flag to false for the DLL but I've never had much luck with thatAnother thing to try is to remove the reference to the DLL from your project and re-add the one that is installed.

 

Tom

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