Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not load file or assembly 'NationalInstruments.Common, Version=8.0.20.270

Hi:

 

I am developing a program in VS 2005 C#. When I copy the exe and the all the related dll under the debug folder to another deployment PC, I received this error when te program want to connect to a GPIB connected instrument:

Fail to Initialize. Retrying ... System.IO.FileLoadException: Could not load file or assembly 'NationalInstruments.Common, Version=8.0.20.270, Culture=neutral, PublicKeyToken=4544464cdeaab541' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'NationalInstruments.Common, Version=8.0.20.270, Culture=neutral, PublicKeyToken=4544464cdeaab541'
   at InstrumentsLib.NationalInstrumentsGpibSession..ctor(Int32 gpibCardAdress, Int32 gpibAddress, Logger oLog)
   at InstrumentsLib.VisaFactory.GetGpibSession(Int32 gpibCardAddress, Int32 gpibAddress, Logger oLog) in C:\ChinLin\SFPpiUSR\Hydra\Drivers\InstrumentsLib\Visa\VisaFactory.cs:line 67
   at InstrumentsLib.GpibInstrument.GpibInitialize() in C:\ChinLin\SFPpiUSR\Hydra\Drivers\InstrumentsLib\GpibInstrument.cs:line 40

 

I search the developement PC where I compiled the code and I do not have 'NationalInstruments.Common, Version=8.0.20.270'. I only have 'NationalInstruments.Common, Version=8.1.20.415' I do not understand why the program will look for 8.0.20.270 and not 8.1.20.415.

 

This issue could also happen when it fail to load the dependency of  NationalInstruments.Common? But how do we know NationalInstruments.Common's dependency? I tried using the Depends.Exe to check but could not found any NI dll used by NationalInstruments.Common.

 

Thank you.

 

Regards,

Chin Lin

0 Kudos
Message 1 of 2
(3,540 Views)
Have you installed NI 488.2 with .NET 2.0 support option on deployed target?
0 Kudos
Message 2 of 2
(3,526 Views)