Hello, I’m using AlarmClient to get some events from Event Server. Everything works fine in most cases but on some machines I get exception with message:
HTTP service located at http://hostname:22331/Central/AlarmService2 is unavailable.
This service is unavailable in web browser too. Event Service is running, restart does not fix this.
Currently this issue is on machine with Windows 10 Corporate, XProtect 2019 R2.
I do not use the URL explicitly in my code, it is shown in exception message only. Error occurs in this line of code:
new AlarmClientManager().GetAlarmClient(Configuration.Instance.ServerFQID.ServerId);
serverId is http://127.0.0.1/ (XPCO)
Hi. Yes, this is the correct way of getting an AlarmCommandClient.
Could you please check the following:
-
The event server is really running on this machine and is not blocked by any firewall.
-
Which version of Event Server and XProtect is running on this machine and which version of SDK do you use?
-
Could you please run our component sample called AlarmViewer and see if it runs correctly on the same machine?
- Yes, it is running (green icon in tray, see note below), firewall is disabled
- Event Server 13.2a (build 381), XProtect Corporate 2019 R2, MIPSDK 2019 R2
- Got the same exception in method OnLoad() in AlarmViewer sample
Note: We have 2 same setups: on Windows Server 2016 Essentials everything works fine, on Windows 10 Corporate this error occurs. On Win10 Event Server has green icon in tray but its logs (see attached file) contains less lines and it is impossible to restart that Event Server without system reboot (it hangs in ‘Starting’ state with yellow icon in tray).
Hi. Thank you for the logs. We see that there is a problem with this machine configuration. You need to create the Milestone technical support case with the given information.