InvalidOperationException

22 views
Skip to first unread message

Elco Grobler

unread,
Nov 5, 2009, 2:32:18 PM11/5/09
to nmodbus...@googlegroups.com

Hi

 

I am using ModbusIpMaster to connect and retrieve data from an modbus

(TCP) device.

 

This works fine, until the a network glitch occurs (Network cable is

unplugged).

The next call after the network has been re-established through the

following exception:

InvalidOperationException - The operation is not allowed on non-connected

sockets.

 

Although I can catch the exception I cannot get "reconnected".

 

Any ideas on how to re-establish the connection?

 

Ocle

 

Reply all
Reply to author
Forward
0 new messages