EnvironmentManager.Instance.SendMessage () throws an exception

Hello.

My application uses SendMessage () to send an AnalyticsEvent, with the following exception:

Note that my application normally sends events to XProtect 2017 R3 Corporate, but for XProtect 2014 Corporate it fails to send events and the following exception occurs.

Why is that?

MIP: Error: BaseEventHandler ():************** Inner Exception ************** 
Exception source:      System 
Exception type:        System.Net.WebException 
Exception message:     The remote name could not be resolved: 'mgmtgensvc.js.com' 
Exception target site: GetRequestStream 
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 
   at System.Net.HttpWebRequest.GetRequestStream() 
   at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() 
 
************** Outer Exception ************** 
Exception source:      mscorlib 
Exception type:        System.ServiceModel.EndpointNotFoundException 
Exception message:     There was no endpoint listening at http://mgmtgensvc.js.com:22331/Central/AlarmService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. 
Exception target site: HandleReturnMessage 

Perhaps this will help troubleshooting.. https://developer.milestonesys.com/s/article/Ports-for-alarms-from-Milestone-Event-Server-service

Hi Bo, I’m having similar issue but the link provided in your reply is broken, any update to this?

Link is now updated. Thank you for making me aware of the broken link.