Solution
First validate that the error occurs due to the custom runtime menu. Change the configuration back to default, and try to build the application again. If it is successful now, the custom runtime menu is the cause of the problem.
The most likely reason for this is a partly corrupt LabVIEW installation. The easiest way to fix this, is to either
reinstall and reinstall LabVIEW, or
force reinstall LabVIEW.