LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding external files

I am using LabView 7.1. I've adding a .net assembly (dll) and use a .net constructor node and a .net invoke node. The property node of my invoke uses an xml that I need to add somehow. When I ran my program it gives me error 1172 "Exception has been thrown by the target of an invocation". I added the xml file in the same folder as my VI which is in the same folder as my .net dlls. I need to know how to add my xml file so the VI can find it.
Thanks,
 
0 Kudos
Message 1 of 3
(2,807 Views)
Hey hdicko,

Unfortunately, I don't have a specific location of where the files should be.  This is going to be largely dependent on what the .NET assembly is going to be using.  Have you tried this in any other language?  That might give you a better idea of where to place the XML file.  I would have also guessed the location of the DLL would be the place to place the XML file.  Are you positive that a misplaced XML file is what is causing the error?  You might try to implement this KB to see if that correct the behavior as well. 

Hope this helps!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 3
(2,779 Views)

Thanks Andy for your assistance. I had already followed the steps in the KB. I even created a Project with the SCC using the VI as the Top Level VI and then adding the XML file to the project. I still get the same exception when I run the VI.

Any suggestions! Anyone!

Thanks,

 

Hammadoun

0 Kudos
Message 3 of 3
(2,738 Views)