05-28-2009 12:18 PM
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.
05-29-2009 08:22 AM
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
06-01-2009 07:10 AM - edited 06-01-2009 07:13 AM
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
06-01-2009 07:12 AM
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