Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

the problem of Installation of DAQ 8.1

hi,
 
I am using MS 8.0 standard for visual studio 2003.net and ms 2005.net. I did one project (we called here A) on those configuration. Yesterday, I installed DAQ 8.1 for another project. After I finished installation, and when i opened project A, I can't open properly because IDE said that "Warning 1 Could not load file or assembly 'NationalInstruments.Common, Version=8.0.11.194, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. The system cannot find the file specified.  0 0 ", I check the National Instrumentations directory, it is, I have 8.0.11.194 directory, but no file inside. I would like to know what happen? how can I fix this problem? It is so crazy problem.... It is hurried........
 
Thank you very much!
 
YHong
p
0 Kudos
Message 1 of 6
(4,525 Views)

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

0 Kudos
Message 2 of 6
(4,512 Views)

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

0 Kudos
Message 3 of 6
(4,491 Views)

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.

0 Kudos
Message 4 of 6
(4,474 Views)

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

mramosc@hotmail.com

0 Kudos
Message 5 of 6
(3,913 Views)
Hi, Guys:
 
How about you?
 
I got your request. I am so sorry to know that you have the same question as mine. Yes, it is really frustrated problem. But I have to tell you that I had this problem a long time ago, so I could find that version files because I upgrade several times already. Ok, but anyway, I give you suggestion:
 
 
1) if you are using XP and also you enable your system recover. Now you can recover your system to the status before you install the new version of National Instruments Stadio. Then you save your old version files into another folder, finally, you try to install the new version again, now you will have both of them.
 
2) If you are using VS 2005.net, you can open a file called licenses.licx ( normally the file is in the folder Myproject. In that file, you will find your NationalInstruments Stadio version number, now what you do is to use new version number to instead of the old one. finally, you recomply the application again. I think it should work properly, of course, you won't get your old file back.
 
Now I am at home, I will try to find that version for you in my office tomorrow. but Hopfully this answer is helpful.
 
 
yang
0 Kudos
Message 6 of 6
(3,909 Views)