06-18-2014 10:17 AM
I have referenced in my Project version 13.0.40.190 but it keeps looking for the slightly older version after I build it and run it on another machine. I put the version 13.0.40.190 in my application root also.
06-19-2014 08:29 AM
I would make certain that the same version NI-VISA is installed and that both PCs have same .NET Framework version installed.
06-19-2014 06:02 PM
Hello,
What version of Visual Studio are you using to build and deploy your application? What version of the .NET Framework are you using?
Please take a look at the suggestions in this forum post and also this forum post about the same error. They discussions have to do with using the WiX installer for Visual Studio 2012. They basically point out that all National Instruments DLL's and Assemblies must be installed in the GAC, and there is information in these forums about how to do this with the WiX installer example.
There is also a KnowledgeBase article with useful information about deploying with the WiX installer: Deploying Measurement Studio Applications with WiX
06-20-2014 07:51 AM
I using Visual Studio 2010 C#
This is an application that runs off a thumb drive. Which was working perfectly fine until I upgraded my measurement studio. The only thing I am using from Measurement Studio is the LED Control, Waveform Graph and Plots, and the Tank control.
06-20-2014 08:52 AM
To add to this I added the following code to put all the dlls in the GAC.
Publish AddDlltoGac = new Publish();
AddDlltoGac.GacInstall("NationalInstruments.UI.WindowsForms.dll");
AddDlltoGac.GacInstall("NationalInstruments.UI.dll");
AddDlltoGac.GacInstall("NationalInstruments.Common.dll");
AddDlltoGac.GacInstall("NationalInstruments.Common.Native.dll");
Then ran the application on a seperate computer and it did in fact copy the correct Dlls to the GAC version 13.0.40.190
BUT I still received the exception stating it's looking for the 13.0.40.188..
06-20-2014 11:02 AM
Hello,
Are you able to confirm that NationalInstruments.Common 13.0.40.190 did register successfully in the GAC of the target computer? Are you using any other drivers (e.d. NI-DAQmx, NI-VISA, etc.)?
Please also check that your build configuration is not set to AnyCPU, as this can cause trouble when the application seraches for assemblies, as detailed in KB 341AEOW3: Deploying Measurement Studio Applications in Microsoft Visual Studio 2010 and Earlier. This KnowledgeBase article also serves as a good reference for deploying Measurement Studio applications.
You mentioend you upgraded the version of Measurement Studio. What were version were you using before and what version are you using now? You can check the Measurement Studio Release Notes for changes between versions.
06-20-2014 11:04 AM
I just wanted to clarify that was me posting above ^^
I accidentally had logged into a different account for trouble shooting purposes.
06-20-2014 11:14 AM
Yes I verified they were installing in the GAC.
No other drivers needed.
Last version I was using was:
NationalInstruments.Common 8.1.20.415
NationalInstruments.Common.Native 8.1.20.415
NationalInstruments.UI 8.1.20.472
NationalInstruments.UI.Windowsforms 8.1.20.472
06-20-2014 11:15 AM
Also set for x86 platform
06-20-2014 04:53 PM - edited 06-20-2014 04:58 PM
Ok, that rules ou ta few problems. Here's some more ideas:
Hope this helps