V6002

Code

V6002

Message

Unable to read bytecode container

The VM opened the file but could not parse it as a valid bytecode container. The file may be corrupted, truncated, or not an .iplc file.

When the message says content hash mismatch, the file parsed but its bytecode does not match the hash the compiler recorded in the header: the file was changed after it was compiled, whether by corruption in transfer or by editing. The VM refuses to run modified bytecode.

Solutions

  1. Verify the file is an .iplc bytecode container produced by the IronPLC compiler

  2. Recompile the source program to produce a fresh .iplc file

  3. Check that the file was not corrupted during transfer (e.g., binary mode for FTP)

  4. Ensure the file was not truncated by a partial write or interrupted build

Think IronPLC is wrong about this?

If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.