AlarmEventViewer example not work

Good morning, I’m using XPROTECT ® 2021 R1 and mipsdk 2021 R1, using the Alarmeventviewer example I get this result "There was no endpoint listening at http: / / [Server]: 22331 / Central / AlarmService2 that could accept the message.

Often this is due to wrong address or SOAP action. See InnerException, if present, for details ..

I am using a test license for Xprotect professional+, I already installed the following patches and verify that the ports are open and the firewall is disabled

https://supportcommunity.milestonesys.com/s/article/XProtect-2021-R1-cumulative-patch-installers?language=en_US

any idea why the endpoint is not published?

Thank you

Please see this KB article, it might be helpful.

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

Thanks for the tip, I had already read that article and made sure that the ports are open and the firewall is disabled, this is not the problem, I have tried other examples and it works, any other advice?

Thanks

Get Outlook for Android<https://aka.ms/AAb9ysg>

Is Registered Services correct? Management Client - Tools – Registered Services

Can you do http://[server]:22331/Central/statusservice and get a response? (Test with the same URL as you found in Registered Services.)

Thanks Rie Kito for the answer, these are my registered services

and this I get when invoking the url

Please do the test using your browser: Can you do http://[server]:22331/Central/statusservice and get a response?

Hi Rie Kito, thanks for the answer, this I get when using the url in the browser

Hi Rie Kito, keep testing the application and notice some behaviors, I describe them below hoping they help determine what happens

1.-When I test the AlarmEventViewer program locally, it works, when invoking it remotely I get this error

---------------------------

Exception

---------------------------

loading Event ()

An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

Server stack trace:

at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply (Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)

at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request (Message message, TimeSpan timeout)

at System.ServiceModel.Dispatcher.RequestChannelBinder.Request (Message message, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannel.Call (String action, Boolean oneway, ProxyOperationRuntime operation, Object [] ins, Object [] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke (IMessage message)

Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData, Int32 type)

at IAlarmCommand.GetEventLines (Int32 from, Int32 maxCount, EventFilter filter)

at VideoOS.Platform.Proxy.AlarmClient.AlarmClientCredentials.GetEventLines (Int32 from, Int32 maxCount, EventFilter filter)

at AlarmEventViewer.MainForm.loadClientEvent () in C: \ Program Files \ Milestone \ MIPSDK \ ComponentSamples \ AlarmEventViewer \ MainForm.cs: line 210

---------------------------

okay

---------------------------

2.- I was also testing the AnalyticsEventViaLibrary example remotely and the example works, since it retrieves the information from the camera that I have connected to the Milestone environment, when pressing the “Send Analytics event” button, the event is not visible in “Xprotect smart client 2021 +”, I was analyzing the packets over the network and I realized that when I pressed the button, the server threw an error code 500, I attached a picture file, when tested locally it works correctly

Are the sample programs made to work locally? Could they work on the network?

regards

We have tested following scenarios according to your previous comment. Please see below test results.

Test 1

AlarmEventViewer runs remotely → works fine, no error. I could see events and alarms in the sample view which is working on remote site.

Test 2

AnalyticsEventViaLibrary runs remotely → works fine, no error. I could see the alarm on SC that I triggered from the sample on the remote site. 2021 R1 VMS SDK.

I am suspecting that you have a special network setting for example; proxy settings (some company have their own settings). Might be a good idea to check it.

Thanks Rie Kito, I will check the network configuration