I recommend avoiding the use of Publish. The recommended practice is to copy the complete solution to the target device and create a shortcut to AdvancedHMI\bin\debug\AdvancedHMI.exe
Just an FYI, the ModbusRTU driver was recently released before it was fully tested, so it has some known issues.