01-27-2013 09:53 AM
HI
Need some help.
System 1: Win 7 Pro, SP1, 32 Bit
System 2: Win 7 Home Premium SP1, 64 bit
System 3: Win 7 Pro, 64 bit
All three system have Visual Studio 2010 with Measurment Studio 2010 SP1 and are trageting the 4.0 framwork
All systems have VS2010 prebuild events IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe setwow
All systems have post build events IF EXIST C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ldr64.exe setwow
I have a shell program that I use for all tester applications using the DAQmx driver (all systems are DAQmx 9.5.1)
My shell runs fine on system 1. I was able to take the code from system 1 and get it to run on system 3. I can not get my shell to run on system 2. see the subject line for error code. Everything that I have tried in the past does not work for system 2. This has involved:
Cleaning the solution before compiling
Removing refrences and then replacing them
Go back to System 1 and try different .net framworks and targeted CPU's
Anything I do to system 2 to make this work only makes things worse; more errors show up. The error in the subject line shows up 23 times in system 2 before I make changes and then make things worse.
Also one more peice of info. When I installed Measurment Studio 2010 onto system 2 for both version of MS2010 (orginal and SP1) the same thing happens. After installing the NI installer gives a message that the application did not install with no other explination or error code. When I go to NI Max it shows that the software is installed. I then tryied to do a repair on the install. Still getting the same problem.
Jeff
Solved! Go to Solution.
01-28-2013 11:52 AM
What version of NationalInstruments.Common are you using on each of these systems? I notice that in the error message it lists 9.1.20.163 which refers to the .NET 2.0 version of the assembly (9.1.40.162 being the .NET 4.0 version). Make sure that you have the .NET 4.0 version in the project references if the other NI assemblies you are using are the .NET 4.0 assemblies.
01-31-2013 10:26 PM
See attached picture, from system 2 (nonworking)The DAQmx driver is version 2.0, the common is 4.0. I was not able to find the 4.0 version of the DAQmx driver on the non working system. WHen I look at MAX it shows DAQmx 9.5.1 driver is installed. Do I need to reinstall the DAQmx driver so that is gets the 4.0 version with all its pieces on my machine?
System 3 has a 4.0 version of daqmx in a folder called Asembilies (64-bit), system 2 does not have this folder. I did not look at the verion of the .Commen
Jeff
02-04-2013 08:14 AM
Hi Jeff,
You can download the DAQmx driver 9.5.1 and when you install, choose the custom option. Under the Application Development Support tree, you can choose to install support for the .NET Framework 4.0. Hope this helps!
02-06-2013 10:03 AM
More help please. I downloaded the file to my non-working machine and the install will not run. See attached screen capture. I have a 64 bit system, but the error message says it is not a valid Win32 application. Ok, very confused now. Please provide an answer today, I need to have this machine running by Friday.
Thank You.
Jeff
02-06-2013 03:53 PM
I have seen this error before and it typically is a result of a corrupted download or anti-virus software. I sent you a private message through the forums to provide you an alternative method to download the software.
02-06-2013 07:44 PM
Thank you.
That download worked. I have the 4.0 version of the DAQmx drive displayed in the references; and my program runs on the laptop. Yeah!
FYI. I did unistall DAQmx 9.5.1 before installing the download provided.
Jeff
02-07-2013 08:16 AM
More info for solution. I also turned off antivirus (AVG free 2013) and disconnected from the internet during the install