04-10-2009 06:44 AM
Hi there,
I have written a .NET 2.0 application that references the following two .NET assemblies...
NationalInstruments.NI4882 - 8.6.20.412 - 4544464cdeaab541
NationalInstruments.Common - 8.6.20.131 - 4544464cdeaab541
These assemblies were installed via the "NI-488.2 for Windows, Version 2.7" Installer downloaded from the Web.
The application is designed to be used by only one person, hence I I asked them to install the same thing!
However they did start off by using the NI supplied CD to install the software...
The application falls over because of the following exception
System.IO.FileNotFoundException: Kan bestand of assembly NationalInstruments.NI4882, Version=8.6.20.412, Culture=neutral, PublicKeyToken=4544464cdeaab541 of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
Bestandsnaam: NationalInstruments.NI4882, Version=8.6.20.412, Culture=neutral, PublicKeyToken=4544464cdeaab541
(ie assembly missing....)
When I asked them to look in the GAC to see what's installed they reported back, the following information
NationalInstruments.NI4882 - 8.6.35.412 - 18cbae0f9955702a
NationalInstruments.Common - 8.6.35.131 - 18cbae0f9955702a
Ie the version numbers are different as is the public key....
What should I do please?
Thanks for your help
David
04-14-2009 05:33 AM
Hi David,
To resolve the problem that you are seeing you will need to make sure that the drivers are the same on the deployment machine as they are on the development machine. I suggest visiting http://joule.ni.com/nidu/cds/fn/p/lang/en where you will find our drivers and updates so that you are able to set both systems up with the same drivers.
Regards,
Thomas Clark
04-14-2009 10:51 AM
David,
You should be creating a setup application that bundles your application plus whatever assemblies you are using and have your end-user run this application plus the underlying driver CD. This will ensure that the assemblies you built against can be found on the target system. Check out the Deploying Measurement Studio help topic (i.e. you can find this help topic by opening up the NI-488.2 .NET Framework 2.0 Help) which will guide you through creating a setup application in Visual Studio (i.e. if you are using some other tool like Wise or Wix to build your installer, then let me know and I can guide you that online).
Best Regards,
04-18-2009 05:03 AM
Hi Jonathan N and ThomasC
Thanks for your comments,
Sorry I have been off on hols, hence my delay.
Anyway the problem is sorted, I asked the cutomer to do the following:-
4) re-install the NI 2.7 here is the options that I did:-
(pictures followed)
This still gave a 32 step install with a reboot!
Anyway the long and short is, the problem is solved. Thanks loads for your help and comments
Best Regards
David