11-01-2010 10:10 AM
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!
11-01-2010 04:27 PM
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.
11-02-2010 08:40 AM
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
11-04-2010 07:48 AM
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?
11-05-2010 02:50 PM
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.
11-08-2010 11:40 AM
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?
11-09-2010 05:53 PM
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.