07-22-2013 03:22 PM
Hello, I've been trying to load a .Net assembly into my labview code. I have verified that the .Net assemblies are in the memory, but they are not only directly loaded, but they appear when I uncheck the box. When I run the project I get this error.
Error creating instance of PowFlatTest in assembly GTCXHydra.PowFlatTest, GTCXHydra, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, (System.Exception: Path c:\users\sdavidovich\desktop\ does not valid) <append><b>System.Exception</b> in Untitled 3.vi
I have placed the dlls on the desktop, where the project is saved, and in the folder that contains labVIEW.exe. I have also made a config file that allows labview to load .NET framework 4.0, which is the build I am using.
When I run DebugView I get these messages.
[4376] DNError: Error creating instance of PowFlatTest in assembly GTCXHydra.PowFlatTest, GTCXHydra, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (1172). System.Exception: Path c:\users\sdavidovich\desktop\ does not valid
[4376] at System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext, Object[] args)
[4376] at NationalInstruments.LabVIEW.DNRuntime.CreateInstance(Boolean isDesigntime, Type type, Int32[] parameterFlags, ObjectId[]& parameterIds, ObjectId& pInstance, LicenseContext licenseContext)
Any help on this would be great.
Thanks guys.
07-22-2013 04:38 PM
Do you have working .NET example code? If so could you post that code and the LabVIEW code that is giving the error?
07-22-2013 08:01 PM
I found the error in my assembly and not in Lab View.