Error -251723770 Occurs When Using Ethernet/Ip Function in Executable

Updated Aug 4, 2020

Reported In

Software

  • LabVIEW
  • Ethernet/IP Driver

Issue Details

I use EtherNET/IP to comunicate with PLC. There are no issues when using LabVIEW development system. But we cannot connect to PLC when the project build into an executable. The error code -251723770 occurs with message 'The session id invalid'. How to solve the problem?

Solution

When you build an executable with EtherNET/IP function in it, you should check the setting in Application properties. There should be no prefix in it, otherwise it will cause the dll's name changing and error occurs when EXE excution.