Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


visual studio runtime application on different computers


  • Please log in to reply
1 reply to this topic

#1 EvgenUrlep

  • Members
  • 1 posts

Posted 05 August 2014 - 05:21 AM



We have the application written in visual studio c# that uses labjack U3. We added the reference to LJUDDotNet in the development system.

 When the application is compiled it works without issue.


When we deploy the application to another computer with the same operating system and same labjack version simply fails the initialization. Config tool works.


u3 = new U3(LJUD.CONNECTION.USB, "0", true);
We installed on the visual studio development system on the computer where the initialization fails. When loading the source code the reference was invalid.
We removed the reference and added it again. Then compilation worked.
What are the initialization requirements? So that the deployed version can work on any pc. Is the key UD driver version? On both was 3.25. Well after copying the dll file to windows/system32/.
on both systems was Windows Vista 32 bit.
Thank you for answer.

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 05 August 2014 - 09:29 AM

The LJUDDotNet.dll is a signed .NET assembly.  This means that the version you use to compile with must be present on the system where it is running.  It must be the exact same version of the file, so that is the first thing I would check.


Also, .NET assemblies typically aren't placed into the system directory in the way a normal .dll is.  They are most often stored in the Global Assembly Cache, so Windows can better manage different versions of the same .dll co-existing.  The process of doing this can be a bit tricky, but we have an application we provide in the drivers folder called InstallLJNet.exe which when run will take the LJUDDotNet.dll found in that directory and place it into the GAC.  You can verify it is there by looking in the C:\Windows\Assembly folder.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users