One issue I have, after I build PLC program, one error is occurred, 'Generating TMC failed! Object reference not set to an instance of an object'.
PS: The program is running in the production line, and build it without error in the owner computer, but others' computer has this error.
Solved! Go to Solution.
Make sure that the "pin version" checkbox is set. Otherwise the project will open with different TwinCAT versions depending on what is installed on your computer.
Also compare (binary compare, not date compare!) if this folder on both laptops is identical (one can have more libraries than the other, but if they have both the same library versions, the files must be identical):
If both is fine there were several solutions in the past: