Hi I have an application written with Milestone SDK hosting on Milestone server. When triggered, it was able to send analytics event and Milestone server reflects that analytics event. But when I run the said application on another server, the analytics event does not appear on Milestone server.
I am using 2018 R3 release due to project requirement.
My firewall inbound rules on Milestone Server have already set port 9090, 22331 and 22333 open.
Can you please test an unmodified sample “Analytics Event Trigger via MIP .Net library” - This sample demonstrates how to submit an Analytics Event to the Milestone XProtect Event Server using the .Net library.
I’ve tried testing “Analytics Event Trigger via MIP .Net library” and faced error. Which I’m not sure why it’s pointing to localhost when I’m running this sample on a client and my Milestone is installed on a server:
Exception message: Alarm Client not created: Unable to find EventServer via Registered Services (localhost:443)
Exception target site: GetAlarmClient
at VideoOS.Platform.Proxy.AlarmClient.AlarmClientManager.GetAlarmClient(ServerId serverId)
at VideoOS.Platform.SDK.Platform.MessageManager.BaseEventHandler(Message message, FQID dest, FQID source)
BaseEventHandlerBaseEventHandler ()Alarm Client not created: Unable to find EventServer via Registered Services (localhost:443) at VideoOS.Platform.Proxy.AlarmClient.AlarmClientManager.GetAlarmClient(ServerId serverId)
at VideoOS.Platform.SDK.Platform.MessageManager.BaseEventHandler(Message message, FQID dest, FQID source)
I don’t get why the error shows I’m pointing to a ‘localhost’ address when I am accessing the milestone server from a client. Shouldn’t it point to the server IP address? Are there any config setting in IIS where I’ll have to change?
We do have problem with out DNS, thus we opted to add host name into the host file.
However when testing, after forcefully stopping IIS website, the debugging mode of Analytics Event Trigger via Library shows correct host name pointing to the Server Command Service:
"MIP: Debug: LoginServerSvc.QueryChanges ():There was no endpoint listening at https://desktop-uq9o9v5/ManagementServer/ServerCommandService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
But after starting IIS, when triggering “Send Analytics Event”, it was still pointing to:
MIP: Error: AlarmClientManager ():Failed to create alarm client. Exception: Event server not found in registered services"
I assume the 2 services are under the same root folder, but they are weirdly displaying different behavior. Thus I’m not sure if it is only the DNS problem.