Error with executing StatusViewer sample

Hi,

When we try to execute SDK sample “StatusViewer”, we are getting the error as shown in the screenshot.

Note: We have Milestone 2020 R3 - Redundant (Failover Clustering)

Thanks

https://developer.milestonesys.com/s/article/Ports-for-alarms-from-Milestone-Event-Server-service

Hi, The port 22333 is open. We can perform telnet. However, when we execute the sample application (Status viewer) provided by Milestone, we are getting the above error. The application is available at “[C:\Program Files\Milestone\MIPSDK\ComponentSamples\StatusViewer](file:C:/Program%C2%A0Files/Milestone/MIPSDK/ComponentSamples/StatusViewer)”. Below is the screenshot of the code snippet

try

{

// Ask for current state of all Items

_messageCommunication.TransmitMessage(

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

} catch (MIPException)

{

MessageBox.Show(

“Unable to connect to EventServer’s MessageCommunication service (default port 22333) - will retry every 5 seconds”,

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

}

The sample uses the address that is setup for the Event Server. Please verify you have a correct setup. Management Client → Tools → Registered Services - on the services list find the Event Server and verify that it has the right address. If you have failover clustering make sure it is the cluster address and verify that it works both when in failover and when not. (Can you telnet using the address from registered services and can you do it while in failover?)

Thanks for pointing this. We are able to successfully connect to the Event server from the “Status Viewer” application