Check your Automation Explorer , Devices and Interfaces, Ports (serial & Parallel). Check the Port you are trying to communicate with and see if the Alias name is the same as in your program. I have had problems using COM X on some machines but ASRLX::INSTR works just fine.
I try to use an INI file to set the device configurations in it. If you have a constant with your resource name in you vi, It may be calling your resource COM5 on you development machine but on your test machine it may be COM2. Both situations have happen to me. Hope this helps. Randall