Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy a .net dll that uses Measurement Studio

Solved!
Go to solution

Hi,

 

I have a c# .net dll that uses Measurement Studio (NationalInstruments.Analysis).

I compile it, and can use one the same PC but not on a different one.

This is the error that I recieve:

System.IO.FileNotFoundException: Could not load file or assembly 'NationalInstruments.Common, Version=8.9.35.302, Culture=neutral, PublicKeyToken=18cbae0f9955702a' or one of its dependencies. The system cannot findthe file specified.

File name: 'NationalInstruments.Common, Version=8.9.35.302, Culture=neutral, PublicKeyToken=18cbae0f9955702a'

 

How do I complile this dll in order to use it on a different PC.

 

Regards,

Eddie


0 Kudos
Message 1 of 4
(3,895 Views)

Greetings,

 

Are you using any hardcoded paths in your program? i.e. C:\My Folder\My Subfolder\MyFile.txt

 

Also, are you calling into any other files or other dlls in this program? Basically looking for things that might be a dependency but might not be getting included when you build the dll.

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,885 Views)
Solution
Accepted by topic author Eddie_B

Hi,

 

I've already found a solution, just had to build an installation package for a different PC and that worked.

 

Thank you,

Eddie

0 Kudos
Message 3 of 4
(3,882 Views)

I have a similar problem. I also use the Analysis library in a C# class library and would like to distribute it to a system which has no Measurement Studio installed. When I try to use my DLL on this system I get an exception - "NationalInstruments.Restricted.AnalysisLicenser is unlicensed."

 

- is Measurement Studio installed on your target system?

- what type of setup did you use?

- did you have to do anything concerning licensing?

 

 

0 Kudos
Message 4 of 4
(3,791 Views)