08-03-2006 09:07 AM
08-04-2006 03:08 PM
Hello,
We look for common in the Current folder and in the GAC (Windows\assembly) folders at design/runtime. Is the file in question not in there?
You should find a item for NI Measurement Studio Common .NET Language Assemblies listed in the National Instruments Software section of Add or Remove Programs. Select this and repair it to get the correct assembly reinstalled on your machine.
If that does not work, please tell me what versions of NationalInstruments.Common.dll are found in the MeasurementStudioVS200#\DotNET\Assemblies\Current folder.
Regards,
Jeff
NI
08-07-2006 08:53 AM
Yes,
I found the problem. I use system restore to recover my system before I install DAQ 8.1. Then my project can be opened properly in VS 2005.net. then I install DAQ 8.1 with default configuration again. and also I check 8.0.11.194 directory(before I start installation, I backup the dll file in this directory). finally, I found when DAQ 8.1 is installing, the installing package remove the dll file automatically in 8.0.11.194 directory. So after I finish the installation, I copy dll backup file back to 8.0.11.194 directory. I can open my project properly in Vs 2005.net as well.
The only thing, I don't undstand. Why DAQ 8.1 remove the old dll file?
Yhong
08-08-2006 11:36 AM
Hello,
Common is our base set of classes that everything depends on. Therefore you must use the same Assembly in your application for all other APIs that depend on common. NI uses a publisher policy file to move all references to the latest version.
What you should do is not reference Common from it's specific folder. Instead reference the newer common right next to that in the "Current" folder. You should also check your reference in your project and make sure it does not say "Specific Version" in the reference properties, because then it is tied to that specific version. If you do not have specific version and reference the Common assembly from the Current folder you should get the correct common even with an upgrade.
What is going to happen with what you have done above is that you will get 2 different types for the data that comes from the new 8.1 DAQ assembly and it will not match the type that comes from the older Common since the CLR will treat the 2 assemblies differently and give them 2 different types within you application.
I hope this helps explain things,
Jeff
NI
P.S. There is an 8.0.1 release of Measurement Studio and inside the DAQ 8.1 installer you will see a feature for ".NET Framework 2.0 Support". These are assemblies/components built specifically for VS2005 where the ones you are using are built for VS2003 and are just usable withing VS2005.
01-14-2008 06:51 PM
Hello YHONG
I had exactly the same problem that you, I installed a newer version of DAQ and the foloder 8.0.11.194 was gone.
The problem is that I didn't backit up or can't get it back using recovery.
Is there a way you could send me the files inside that folder.
Please help, I'm desperate!!
MRamos
01-14-2008 07:24 PM