Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET program blew up

Solved!
Go to solution

I wrote an app. in VS-2005 / MS 8.5 (2005) / .NET framework 2.0 / NI DAQmx 8.8 that addressed a USB-6211 board. All ran fine. Sometime after I upgraded to VS-2008 / MS 8.5 (2008). I never upgrade DAQmx at that time. Now I try to run that app (the old executable) and get a message that it cannot find the hardware device. The device checks out in Test Panels, the drivers seem to install and start properly. I opened the source code in VS-2008 and the auto convert worked successfully. Whe I tried to debug or build I get the following:

 

Error    1 Unable to find module file 'D:\My Documents\LDT1\Program\LDT1.NET\LDT-Pub01\Setup1\policy_8_0_microsoft_vc80_atl_x86.msm'    D:\My Documents\LDT1\Program\LDT1.NET\LDT-Pub01\Setup1\Setup1.vdproj    LDT2 Setup

 

Warning    2 Unable to find manifest signing certificate in the certificate store.    Load Deflection Tester

Warning    3 Found conflicts between different versions of the same dependent assembly.    Load Deflection Tester

 

I chalked it up to a version mismatch between MS and DAQmx so I upgraded to DAQmx 9.02. No change. Any clues to why my app won't recognise my hardware any more?

Labview 8.5
Meas Studio 2008
0 Kudos
Message 1 of 40
(6,714 Views)

One more thing. I did upgrade to .NET framework 3.5.

 

Labview 8.5
Meas Studio 2008
0 Kudos
Message 2 of 40
(6,712 Views)
You must install DAQmx after every time you upgrade or install new NI software. Try that and then try running an example program from C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 3 of 40
(6,660 Views)

Thanks. I wish it was that easy but...... I had installed DAQmx 9.02 like I said in my original post. I may not have rebooted the computer (If it did not require I would not have done it). I rebooted now, opened the project and tried to debug. Instead of 3 messages I now got 2. Don't remember the wording of the first one but it changed some version references in the app.config file. Now I have only one message:

 

Unable to find manifest signing certificate in the certificate store.    Load Deflection Tester

 

but now it's an error, not just a warning. What's a certificate store and how do I fix it or destroy it so I can have my program back? I really don't care if something is signed or not signed. I need my software. 

Labview 8.5
Meas Studio 2008
0 Kudos
Message 4 of 40
(6,655 Views)

Check out this page entitled, Unable to find manifest signing certificate in the certificate store.

 

Hope it helps.

 

Best Regards, 

Jonathan N.
National Instruments
0 Kudos
Message 5 of 40
(6,633 Views)

Thank you. Now I am making some pogress. The app will compile now. It still has the following warnings:

 

Warning    1    Referenced assembly 'C:\Program Files\National Instruments\
MeasurementStudioVS2008\DotNET\Assemblies\Current\
NationalInstruments.Common.Native.dll' targets a different processor than
the application.    Load Deflection Tester

same warning with:
NationalInstruments.DAQmx.dll
NationalInstruments.UI.Styles3D.dll
NationalInstruments.UI.WindowsForms.dll
NationalInstruments.UI.dll

So I went to references in the solution explorer, deleted the first one and tried to add it again as a reference. I chose the one that had a 35 in the number, asuming that NI intended this to mean framework 3.5. It gave a message that I must reassign the framework to the project as follows: 

"Open properties in the project menu... select from the .NET framework dropdown box." (This msg paraphrased as there is no way to copy and paste it.

 

I can't find this option. Project menu.... the one that starts out "Add Winows Form", "Add User Control", etc. Am I right so far? Bottom of list is "Load Deflection Tester Propoerties". I select it. Within, there are 11 left hand tabs, from "Application" to "Publish". Going through all tabs, I can see nomention of NET framework dropdown box. The only ref to framework is "Enable Application Framwork" with a checkbox. 

 

Can anyone steer me to where this dropdown box actually is?

Labview 8.5
Meas Studio 2008
0 Kudos
Message 6 of 40
(6,615 Views)
Can you post a screenshot of the message?
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 7 of 40
(6,597 Views)
Don't have any screen shot software so here's a digi cam shot.
Labview 8.5
Meas Studio 2008
0 Kudos
Message 8 of 40
(6,586 Views)

Walter,

 

You can take a screenshot from any windows machine by pressing print screen, though the digi cam was more than adequate. You need to right click on your project, go to properties and then under the application tab select the .NET Framework 3.5 under Target Framework.

 

 2009-12-14_152045.jpg

 

 

2009-12-14_152027.jpg

 

 

 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 9 of 40
(6,569 Views)

I was excited when I read this answer as I thought that after a week I had this resolved but...... the screen you show does not exist in my software. I am using VS 2008 / MS 8.5 v8.5.0.220 (installed as version for VS2008) / .NET framework 3.5 SP1. I have posted a screen shot of the same page as your shot. There is no reference to "Target Framework". I have gone through every tab in the properties (maybe 3 times) and I can't find it. It it somewhere else in VS2008. Is your screen shot taken from VS2005?

 

Labview 8.5
Meas Studio 2008
0 Kudos
Message 10 of 40
(6,548 Views)