Hi,
If you try to target to the RT box and you are getting this error, then it is because you don't have the VI in your computer in the same directory as the RT box. So, for example, if you have the exe in c:/ni-rt/system/startup/ then you should create the same directory in your pc and save the VI in that directory. That should do it.
IF not, what you can do is before building the exe, go to the Application Builder and in the VI Settings edit the option for not removing the code.
Hope this helps.
Ricardo S.
National Instruments.