when vms event server set clustor mode, can Ask mip for current state of all Items?

when vms event server set cluster mode , this code into catch, not set is ok! how to do?

{

// Ask for current state of all Items

_messageCommunication.TransmitMessage(

new VideoOS.Platform.Messaging.Message(MessageCommunication.ProvideCurrentStateRequest), null, null, null);

} catch (MIPException ex)

{

addlog(“异常->”+ex.Message);

    MessageBox.Show(

“Unable to connect to EventServer’s MessageCommunication service (default port 22333) - will retry every 5 seconds[”+ ex .Message+ “]”,

“Warning”, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

}

We assume what you wanted to do is try to get status of all items through Recording server using MessageCommunication.

But this way does not work. Because MessageCommunication is nothing related to Recording server, so you cannot get status of the items in that way.

However there is a sample called Status viewer sample. This sample shows how to dynamically show status on items such as server, camera, event etc. This might be helpful.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/statusviewer/readme.html&tree=tree_2.html

Yes, I am an example of this, but when the event server is enabled in cluster mode, this method is not available.the error info is default port 22333。How should I handle this?