01-07-2013 10:23 AM
Hello,
I am quite an inexperienced LabView user and have encountered the following problem: I get an error message every time I run Labview that LabView.exe initialization requires .NET version 4.0.3093 (I do have .NET 4). I tried adding the config file as instructed in the Support section but that did nothing. I am now reinstalling LabView altogether since when I installed it previously I only had .NET 3.5
What I need it for is to call a .dll created using Visual C# 2010. I've got it in 2 copies - built for .NET 2 and .NET 4. I've tried both using the Call Library Function Node and neither one works, I assume due to the above error message.
Am I missing something? Is there something else I should try?
Any advice would be most welcome, thank you!
Solved! Go to Solution.
01-07-2013 11:24 AM
.Net calls need to be made using the "Constructor Node". Once placed, it will popup and ask you what assembly you wish to call. Simply point it to your DLL and you should be able to see the constructors available. Once you have selected your constructor and returned to the block diagram, right-click the refnum wire (top-right) coming out of the constructor node and you navigate to Create Property/Method for your object. Please let me know if you need additional help.
01-07-2013 11:27 AM
.NET version 4.0.3093 (I do have .NET 4). is probably a typo in "LabVIEW.exe.config" 4.0.3.0913 is more common![]()
01-08-2013 03:22 AM - edited 01-08-2013 03:48 AM
Thanks Charles_CLA, I shall try it once my fresh install is done (shouldn't be long now)!
Also yes, it was a typo (end of work day kind of thing
)
Edit: I tried and I get the following error message when I use the constructor node (I had tried it yesterday as well and got the same):
"You must have .NET Framework 2.0 or later to use .NET functions and applications. Refer to the Microsoft web site at www.microsoft.com to download the .NET Framework"
Also I keep getting the same error from NI Update Service that it needs 4.0.30319.
01-08-2013 04:06 AM
And one more thing: just like in my first install, I had errors installing Run-Time engine. No idea if it's related to my .NET problem though.
01-08-2013 09:05 AM
There are also no .NET assemblies in the memory dialog box. I tried using the Options > Path bit to specify the path to Windows/Microsoft.NET but I still get error messages. Any suggestions?
01-08-2013 10:06 AM
01-08-2013 10:10 AM
Thank you GGGT, but I've tried the .config fix (as suggested by the Support section) but it doesn't seem to work.
01-08-2013 10:14 AM
01-08-2013 10:17 AM