Solution
The problem may be caused by anti-virus or Windows security policy on the development computer.
In order to solve this issue, you can try the following:
- Disable any anti-virus temporarily for troubleshooting.
- Run LabVIEW as administrator by right-click LabVIEW shortcut and select Run as administrator.
- Make sure that the LabVIEW and shared folders are set to read/write instead of read-only.
- Open LabVIEW and then your project.
- Build your executable. It should build without this error.
Note: In case you shutdown, restart or log off your computer, LabVIEW will return to the default privileges.
If these steps resolve your issue, you may choose to examine your anti-virus and permissions settings in Windows for the source of the problem. LabVIEW does not normally require administrative rights to build applications, and works with most anti-virus software.
If you are using a low-level driver in your project, such as user32.dll, you may also encounter this error when trying to include the shared library in your build. To resolve this issue, you can try the following:
- If using a Call Library Function Node, set the path to just the name of the dll, such as user32.dll in the Call Library Function Node settings. Do not specify the path as the full path to the dll.
- In your build specifications, navigate to the Additional Exclusions tab on the left side
- Check the box next to Exclude dependent shared libraries. This will cause the executable to rely on the operating system of the target computer to find and use the appropriate low-level driver that should already come installed with the operating system.
- Build your executable. It should build without this error.