Debugging Calls to .NET Framework Assemblies
- Updated2026-08-28
- 2 minute(s) read
Debugging Calls to .NET Framework Assemblies
.NET objects can exhibit unexpected behavior when LabVIEW has a different version of the assembly in memory than the version you want to use. To diagnose many of these .NET assembly conflicts, use the .NET Assemblies in Memory dialog box.
The .NET Assembies in Memory dialog box displays identifying information for the assemblies in memory. As a result, it allows you to verify if LabVIEW loaded the correct version of an assembly.
To debug a call to a .NET Framework assembly, complete the following steps.
-
Determine the name, version number, and location on disk of the assembly you want
LabVIEW to load.
Ensure that the assembly is located within the search path that LabVIEW uses to locate assemblies.
-
Select .
The .NET Assemblies in Memory dialog box appears.
- In the dialog box, locate the name of the assembly that you are trying to load.
- Identify discrepancies between the assembly information in the dialog box and the identifying information of the desired assembly from step 1 . If there are no discrepancies but LabVIEW does not reflect your most recent changes to the assembly, you might need to force LabVIEW to load the updated assembly. For more information, refer to Loading Changes to a .NET Framework Assembly in Memory.
-
Choose one of the following procedures for replacing the assembly in memory with the
desired assembly.
Option Description Search for a different version of the same assembly Move the loaded assembly out of the assembly search path. For information about the search path, refer to How LabVIEW Locates .NET Framework Assemblies. Force LabVIEW to load the desired version of the assembly Create a project configuration file. For more information, refer to Specifying Which Version of a .NET Assembly to Load. -
Close and reopen the projects that call the assembly.
This action forces LabVIEW to unload the incorrect version of the assembly from memory and then to load the correct version.
Related Information
- .NET Assemblies in Memory Dialog Box - LabVIEW Programming Reference Manual
- Requirements for Using .NET Framework Assemblies in LabVIEW
Whether you want to create and manipulate .NET Framework objects in LabVIEW or use LabVIEW to build .NET Framework assemblies for other applications to use, you must adhere to certain default requirements and settings.
- Loading Changes to a .NET Framework Assembly in Memory
While an assembly is in memory, LabVIEW does not detect changes that you make to the assembly on disk. Therefore, before LabVIEW can access any changes that you make to the assembly, you must update the assembly version in memory.
- Specifying Which Version of a .NET Assembly to Load
If you have multiple versions of the same assembly on your machine, you must specify which version of the assembly to use in certain situations. Use a .NET configuration file to specify the assembly version to load.
- Managing a Project in LabVIEW