08-24-2007 06:41 PM
Hello, knowledgeable application engineers,
I have implemented a proof of concept for .Net Container and C# User Controls in LabView 8.0 Full Development System. The behavior of C# user control is performing well in C# test form and LabView top level VI. However, “Error 1172 occurred at Property Node, Possible reason(s): LabView: A. Net exception occurred” was occurred after .Net Container and Control relocated in SubVI called by “Open VI Reference” and “Call By Reference Node”. I have searched all knowledge base that mentioned copying control DLL to the same directory where all VI resident. Still run out of luck. Any hit can be provided?
08-25-2007 05:08 PM - edited 08-25-2007 05:08 PM
Message Edited by Jonathan N on 08-25-2007 05:08 PM
08-27-2007 11:14 AM
Jonathan,
Thanks your response.
I have attached a simple .net control, NamesControl.dll, with three VI files,
dotnetMainPanel.vi
dotnetSubPanel.vi
Splash Screen.vi
for reference. The NamesControl.dll just comprises three textboxes and one label to display First, Middle, Last Name from textboxes input. dotnetMainPanel will play the top-level VI with one NamesControl that visibility was controlled by visible button. dotnetSubPanel.vi is called by reference node when dotnetMainPanel executes also has it's NamesControl visible control mechanism. You will see the .net error popped up when dotnetMainPanel runs. The error can be eliminated by delete visible property node of UserContol1 in dotnetSubPanel.vi. I will set up a project which following your suggestion to check the concept works.
Meanwhile, could you send me a simple framework that work well with user control and sub vi call after inspect the attached files. That can guide me through all mist.
Regards,
08-27-2007 01:36 PM
07-06-2015 01:40 PM
I am experiencing a similar problem when using a C# dll created using VS2010 (framework 4.0) and Labview 2013.
The exception is thrown when the dll is called from the unbuilt code, indicating that is cannot find the dll's config file which is in the application directory with the dll.
It indicates that it is trying to find the config file on my desktop...not sure why. Hoping someone may know.
Also, when running the built Labview .exe, the exception is not thrown and the all portions of the solution work as expected.
07-07-2015 11:16 AM - edited 07-07-2015 11:16 AM
Hi ashr668,
This forum has not been posted on for more than seven years. To get a better response from the community on this issue, I recommend you post your problem in a new thread so more users will be able to see it.