Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


What Happens When the Program Closes as a Result of a System Error?


Last Update: 11/7/2018

Runtime errors, although usually rare, do happen every once in a while.

KEPServerEX V4.x
By default, KEPServerEX 4.x creates its service with no recover options set. If a runtime error occurs and the server runtime service stops, users must manually restart it unless they go into the service properties and set the failure options. A minimum configuration would be to set the First and Second Failure Options to "Restart the service" and the Subsequent Failure Option to "Take no action". The client application will have lost its connection. If it was designed to automatically reconnect with the server, it will do so as soon as the service restarts; otherwise, it will need to be reconnected manually.

If the server is running on the desktop (interactively), and the client application is designed to reconnect automatically, then the server will be launched by the client and start working again. If the client application is unable to automatically reconnect to the server, then it will need to be restarted manually and the client connection will have to be re-established manually.

KEPServerEX V5.x
By default, KEPServerEX creates its service with the First and Second Failure options set to "Restart the service". The Subsequent Failure option is set to "Take no action". If a runtime error occurs, the server will restart at least twice. The client application will have lost its connection. If it was designed to automatically reconnect with the server, it will do so as soon as the service restarts; otherwise, it will need to be reconnected manually.

If the server is running on the desktop (interactively), and the client application is designed to reconnect automatically, then the server will be launched by the client and start working again. If the client application is unable to automatically reconnect to the server, then it will need to be restarted manually and the client connection will have to be re-established manually.

Related Products
DDE Client, KEPServerEX