09-24-2007 04:05 PM
09-24-2007 04:46 PM
Hi Filipp,
What version of LabVIEW are you using? In LabVIEW 8.5 we fixed a bug where
users would receive error 1502 when building an application that used .NET
Constructors, Invoke, or Property Nodes within a LabVIEW OOP Class VI. Is this
your case? If this is the case, the workaround is put any .NET
constructors, invoke or property nodes that are used in a LVOOP VI in a subVI
that is not part of a OOP class.
As far as you receiving the message "An error occurred
trying to load the assembly" usually indicates that the .NET CLR
cannot find the requested assembly. If you add the VI that uses the .NET
assembly to a LabVIEW project and then put any .NET assemblies it references in
the same directory as the LabVIEW project or one of its subdirectories, everything
should work. It's recommended that any VI that uses .NET assemblies be part of
a LabVIEW project because we create a separate AppDomain for LabVIEW projects
and set the AppBase to the LabVIEW project home directory.
Hope this helps!
Post back if things are still not working.
Best Regards,
09-25-2007 01:42 PM
09-25-2007 02:37 PM