Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

VisaNS References Old Assembly

Solved!
Go to solution

Thanks.

0 Kudos
Message 11 of 25
(2,671 Views)

Hi, I am having a similar problem I think.  Based on the below error message, I think I need NationalInstruments.VisaNS.dll version 8.5.20.310.  I have versions: 8.9.20.108, and 8.9.20.108, but not 8.5.20.310.

Here is my error message.

 

Unhandled exception has occurred in your application.  If you click
Continue, the application will ignore this error and attempt to continue.  If
you click Quit, the application will close immediately.


Could not load file or assembly 'NationalInstruments.VisaNS,
Version=8.5.20.310, 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)


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'NationalInstruments.VisaNS, Version=8.5.20.310, 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.VisaNS, Version=8.5.20.310, Culture=neutral, PublicKeyToken=4544464cdeaab541'
   at ......

0 Kudos
Message 12 of 25
(2,602 Views)

Hi DavidB Nor Cal,

 

Are you also using Sandcastle? Did you try the solutions already listed in the thread?

 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 13 of 25
(2,584 Views)

Hi Hassan A,

Thank you for your prompt reply.

No, I am not using Sandcastle.

I am maintaining (fixing bugs) in a standalone application someone else wrote (now long gone) that communicates with test and measurement instrumentation via USB.  Everything works fine on Windows XP machines.  When I try to run it on various Windows 7 machines I get that error.  I looked at the solutions in this and other threads and I think I need to include version 8.5.20.310 of NationalInstruments.VisaNS.  But if you think it may be something else, I welcome your input.

Thanks,

David

 

0 Kudos
Message 14 of 25
(2,577 Views)

Hi,

I still need this help.

Thanks,

David

 

0 Kudos
Message 15 of 25
(2,546 Views)

Hi David,

 

Since you're not using Sandcastle, simply giving you the file may not solve the problem you are seeing. I'd like to find out why the .NET assembly is not properly binding to the new assembly version. Would you be able to get a fusion log, so we can explore the assembly binding? Here's a community document that explains how to do this:

 

Using Fusion Logs to Debug .NET Assembly Binding Issues

 

Let me know what this log shows. Take care!

Tanya Visser
National Instruments
LabVIEW Group Manager
0 Kudos
Message 16 of 25
(2,533 Views)

Hi Tanya,

You were right.

I was able to resolve the problem without getting that specific file.

Thanks for your help.

David

 

0 Kudos
Message 17 of 25
(2,495 Views)

Hello,

 

I found this while googling. it is a bit old but Sandcastle installation is hit with this problem.

 

I receive the message 

 

MREFBUILDER : error : Unresolved assembly reference: NationalInstruments.Common (NationalInstruments.Common, Version=9.0.35.610, Culture=neutral, PublicKeyToken=18cbae0f9955702a) required by NationalInstruments.DAQmx

 So it seems I need 9.0.35.610.

 

 

Thanks in advance and kind regards,

Florian

0 Kudos
Message 18 of 25
(2,174 Views)

Hi fschricker,

 

Based off of this thread it does appear that you need 9.0.35.610. I am currently in the process of trying to track that down and posting it here. Have you been able to find the necessary files?

Patrick H | National Instruments | Software Engineer
0 Kudos
Message 19 of 25
(2,164 Views)

Hi,

 

thank you for replying!

 

Unfortunately I have not been able to track down the files myself.

 

 

regards,

fschricker

0 Kudos
Message 20 of 25
(2,161 Views)