Server.Connected Property Incorrect

Discussion created by rohanar on Sep 1, 2010
Latest reply on Sep 3, 2010 by jlakumb

As noted in the PI-SDK Help, the Server.Connected property occasionally incorrectly returns True when the server is in fact disconnected.  This is reproducible by making a PI call within an application, leaving the application open, restarting the PI Network Manager service, then making another PI call from your application.  At that point the Server.Connected property is True but any methods invoked on the Server object result in COMException with an Error Code of PISDK.PISDKErrorConstants.pseDISCONNECTED.  There is a Server.TestConnection method in the PI-SDK help, but it is not implemented.

Does anyone have an efficient method of testing the PI connection or any other way to get around the incorrect information provided by the Server.Connected property?