Check if Milestone SDK is current Connected

Hi my name is Luis Oliveira,

I’m software developer at AGORASYSTEMS.

I need to know if SDK is connected to Milestone and currently for know this I invoke the function to get the last 2 alarms in Milestone.

I receive one exception after some time ("ExceptionSystem.ServiceModel.FaultException`1[VideoOS.Platform.Proxy.Alarm.Alarm

ServiceFault]: Database connection fault (O Detalhe da Falha é igual a VideoOS.P

latform.Proxy.Alarm.AlarmServiceFault)"

Why I receive this exception?

It’s possible to know the time reconfigured in Milestone?

If I invoke this function “VideoOS.Platform.SDK.Environment.IsLoggedIn(uri);” I receive one response false. Why?

Thanks for your attention

kind Regards.

Did you perform a login? It might explain everything if you do not..

If you run the the Alarm and Event Viewer sample, do you see the same exception?

If you are using protocol integration please outline what you are doing.. (Perhaps include snippets of your code.)

Yes, I perform the Login.

Exist any problem of execute the command for get the last alarms many times? (6 times for seconds).

Is possible to get the time of Milestone? If yes How?

Thanks for your attention.

Regards.

I have no indication how often or fast you can ask..

It is not possible to get the server time using the Milestone server. Milestone recommends that you make sure that all cameras, servers, and clients are time-synchronized, either against a common Active Directory domain server, or a common network time protocol (NTP) server.

The “Database connection fault” is a generic error message indicating that the event server is not connected to the SQL database. Your application is successfully connecting to the event server.

You should only be getting this error during event server startup sequence. If you keep getting the error, try taking look at event server logs to see why this might be the case.