09-07-2007 06:34 PM
09-10-2007 06:20 PM
09-11-2007 11:43 PM
09-11-2007 11:51 PM - edited 09-11-2007 11:51 PM
Message Edited by Bill@NGC on 09-11-2007 09:51 PM
09-12-2007 04:24 PM
09-13-2007 03:24 AM
09-13-2007 10:20 AM
Hi CLM,
When you build your VIs into an executable and those VIs happen to reference
.NET assemblies, then you must obey the rules of .NET and understand how the
.NET CLR locates assemblies. .NET requires that all assemblies either
live in the GAC or in the same directory, or subdirectory of the application.
These requirement is based upon the fact of how the .NET CLR attempts to locate
assemblies. I could go into detail about how .NET probes for assemblies, but it’s
better if you take a look at Microsoft documents such as the MSDN article How the Runtime
Locates Assemblies.
Anyway, with regards to LabVIEW, if you build some LabVIEW application called
blah.exe, then the .NET assemblies it needs must either be in the GAC or in the
same directory or subdirectory of blah.exe.
You need to consider these rules when configuring your applications properties.
One suggestion is to add all your .NET assemblies to your LabVIEW project and
make sure to copy them over into the data directory which is in a subdirectory
of the application.exe directory. In this case, the .NET CLR will find those
assemblies. Plus adding these assemblies to your project and setting them to
copy over makes your life easier. This way you don't have to manually copy and
paste your assemblies to some directory in your applications directory.
Hope this helps!
Best Regards,