Solution
There are several possible causes for this error. Therefore, this article is not exhaustive but will address some of the common situations that may result in this error when running a LabVIEW executable.
If Using LabVIEW 2018 (32-bit):
This error is solved with the LabVIEW 2018 (32-bit) f2 Patch release. Go to the LabVIEW 2018 (32-bit) f2 Patch download page to install and upgrade to this version.
If Using "NI_AALBase.lvlib":
When any function inside "NI_AALBase.lvlib" is included in a VI, the resulting standalone application becomes unloadable.
The following steps are a workaround for this situation:
-
In the Project Explorer, move "NI_AALBase.lvlib" from Dependencies and place it under My Computer.
-
In Build Properties, move "NI_AALBase.lvlib" to the "Always Included" section.
-
Rebuild the Build Specification.
-
Run the executable.
If the "Std Deviation and Variance VI" in the NI_AALBase.lvlib is used and throws this error, you should update your LabVIEW version to at least LabVIEW 2020, because this bug was fixed in this version.