08-19-2011 01:24 PM - edited 08-19-2011 01:29 PM
I have a vb.net program that controls lab equipment using a GPIB-USB-HS interface that works fine on my desktop PC where I wrote it but not on any of my laptops. I keep getting this error. I tried putting the correct DLL where my program was looking for it but it still doesn't work.
Solved! Go to Solution.
08-19-2011 01:29 PM - edited 08-19-2011 01:29 PM
Hi there,
Could you please tell us what assemblies (name of the assembiles) that the applications is trying load but not able to find it?
Regards,
Vijet Patankar,
National Instruments
08-19-2011 02:57 PM - edited 08-19-2011 03:03 PM
I beleive it's NI4882. BTW, I'm using vb.net express 2010. The path set by mreferences in VB is C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Assemblies\Current\NationalInstruments.NI4882.dll. This path exists on the laptop also but the file has the wrong numbers. 8.9.20.302
08-22-2011 05:36 PM
Hi DickHutchings,
Did you build this as a distribution, or are you trying to just run the code in VB.NET Express 2010 on your laptops? Also, what operating systems do you have on your desktop and your laptops? Do you have the same versions of the 488.2 driver on all machines? In looking at the path you have listed, it looks like it is referencing an assembly stored in the directories for Visual Studio 2005 and not VB.NET Express 2010. Are you attempting to run the software in Visual Studio 2005 on your laptops? Any other clarification you could provide about your separate computers' setups would be helpful. Thanks! Have a great day!
08-23-2011 08:54 AM
@Taylor G wrote:
Hi DickHutchings,
Did you build this as a distribution, or are you trying to just run the code in VB.NET Express 2010 on your laptops? Just trying to run it my laptops.
Also, what operating systems do you have on your desktop and your laptops? XP on all with framework4 installed on all of them.
Do you have the same versions of the 488.2 driver on all machines? No, and I don't know how to fix that.
In looking at the path you have listed, it looks like it is referencing an assembly stored in the directories for Visual Studio 2005 and not VB.NET Express 2010. Are you attempting to run the software in Visual Studio 2005 on your laptops? No, I'm just running the executable I wrote in 2010. I don't know how or where to find a reference for 2010. I'm very confused.
Any other clarification you could provide about your separate computers' setups would be helpful. Thanks! Have a great day!
The only thing I am sure of that the program is looking for driver version 8.1.20.19 and it can't find it where it's looking even if I manually put it there. I sure hope this helps and thank very much for taking the time to respond.
08-24-2011 03:38 PM
**bleep**,
I dont believe its actually referencing the 488.2 driver, considering the latest version is 2.9.
I think its actually talking about some measurement studio DLLs its having issues with.
Have you built an installer for this code? This may help to make sure all the proper versions of the dlls are included. Instructions can be found here:
http://digital.ni.com/public.nsf/allkb/ED87C183E056CAC386256DF1004E54C6
Regards,
Kyle Mozdzyn
Applications Engineering
National Instruments
08-25-2011 09:23 AM
Thank you very much. Deploying with a setup.exe was all I needed to do although I couldn't follow the instrucions because I have vb express.