06-30-2011 01:32 AM
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
Solved! Go to Solution.
06-30-2011 04:10 PM
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.
06-30-2011 06:30 PM
Hi,
I've already found a solution, just had to build an installation package for a different PC and that worked.
Thank you,
Eddie
09-15-2011 05:07 AM
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?