Solution
First validate that the error occurs due to the custom runtime menu. Change the configuration back to default, and try build the application again. If it is succesful 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
deinstall and reinstall LabVIEW, or
Force Reinstall LabVIEW.