LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1172 Loading a .Net Assembly

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.

0 Kudos
Message 1 of 3
(2,662 Views)

Do you have working .NET example code? If so could you post that code and the LabVIEW code that is giving the error?

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 3
(2,649 Views)

I found the error in my assembly and not in Lab View.

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