Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ClickOnce installation for National Instruments DLL not working

All - I am not sure if I posted my question in the right forum so for this I apologize.

 

I am developing .NET WPF application and it the application is referenced to NationalInstruments.Common and NationalInstruments.DaqMx.

I created my installation using ClickOnce Technology but whenever I am installing it in other machine aside from my development machine it is not working.. it is giving  me a message "Unable to install or run the application. The application requires that assembly NationalInstruments.DaqMx Version 9.2.35.32 be installed in GAC first. Please contact system administrator"  

 

I tried several things:

- I installed the same NIDAQ driver that I used in my development machine, for some reason it is installing different version in the target machine. I don't know the reason why and I will appreciate if somebody can explain the reason behind it

- In my VS.NET, I changed the Specific Version property of the dll references to TRUE, it is by default false

- I  changed the "Copy Local" property to true

 

Can anybody help me?

 

Thanks!

 

0 Kudos
Message 1 of 7
(4,856 Views)

I was able to make this error go away by making the third party dlls as "include" in the settings of clickonce.

Although, I am not sure if this is really the answer to my problem because whenever I call the function/method from National INstruments dll I am getting an error of "The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)"

 

Anybody? I am stomped.. grrr.

0 Kudos
Message 2 of 7
(4,842 Views)

mbda,

 

ClickOnce is not supported actively in Measurement Studio. The knowledgebase article below identifies a possible workaround for using ClickOnce deployment with Measurement Studio.

 

http://digital.ni.com/public.nsf/allkb/148A815DF9379F8786257560005DB06A?OpenDocument

Raj
National Instruments
Applications Engineer
0 Kudos
Message 3 of 7
(4,831 Views)

Thanks for the reply Raj.

 

I tried the steps (msi installer )based on the link that you sent and I still get the same error  "The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)". 

 

Do I have to install the NIDAQMx Driver? I am using the 9.2 version but then when I installed it, it has different version (9.3.x.x) for different machine.

 

Another thing, I am developing under Visual Studio 2010, and Win7 OS. 

 

Any more ideas?  

0 Kudos
Message 4 of 7
(4,815 Views)

mbda,

 

I'm a little confused here. What do you mean the version of DAQmx you are using the the one installed are different? Also, the latest version of DAQmx is 9.2.2 so I'm not sure how you are seeing version 9.3.x.x.You definitely do need to have the DAQmx driver installed if your installer requires it.

 

Finally, just to reiterate,

Clickonce is not supported by Measurement Studio as there has not been adequate demand to justify allocating developer resources for it. I would recommend making a product suggestion if this is a feature you would like seen in a future release.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 5 of 7
(4,797 Views)

 

Sorry about the confusion about the versioning.... it was a typo error. What I was trying to say is for example: I  installed the NI-DaqMx driver in machine A the version of the assembly is 9.2.35.32; and then if I installed the same driver in machine B the version assembly of NiDaqmx.dll is different. 

 

When you mentioned that ClickOnce is not working yet in this version I didn't continue trying it. So the installer that I mentioned in my last response is the MSI Installer, the steps that I followed is from this link http://digital.ni.com/public.nsf/websearch/ED87C183E056CAC386256DF1004E54C6?OpenDocument. The only difference is I made it with Visual Studio 2010 and under Win7 OS.  

 

I am still experienced the same error  "The specified procedure could not be found. (Exception from HRESULT: 0x8007007F)".

 

Any thoughts? 

0 Kudos
Message 6 of 7
(4,782 Views)

mbda,

 

Have you seen this document?

 

http://digital.ni.com/public.nsf/allkb/B041EF3CAF634FD98625770500509298

 

Measurement Studio 2009 does not have built in support for Visual Studio 2010. Ensure that you are following the steps outlined before you build your application so that we know it has appropriate support.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(4,762 Views)