Hi,
We use logclient API to get log from server. We referred to the sample LogMessageToServer. The program can work well when it run on the server system(the system installed Xprotect). However it failed to get log when it run from a separated system, although it can log a message to server successfully. It always throw exception. The message like System.AggregateException:“one or more errors happened”. Any idea on what could be wrong?
Is there additional information perhaps in an inner exception or similar?
Here is the message I can see.
System.AggregateException: one or more errors occurred。 —> VideoOS.LogServer.Communication.CommunicationServiceException: Exception of type“VideoOS.LogServer.Communication.CommunicationServiceException”was thrown。
at VideoOS.LogServer.Communication.ClientWrapper`1.d__11`1.MoveNext()
-– End of stack trace from previsous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VideoOS.LogServer.Communication.Readers.LogReader.d__17.MoveNext()
-– End of stack trace from previsous location where exception was thrown —
I suspect some kind of network communication or authentication error. If you run other samples or the Smart Client in the same PC does it work without flaw?
I tried to reproduce using the LogMessageToServer sample, for me it works. Did you change or extend the sample? If you did, let me know how.
Thanks Bo. I found that the system time of client machine had big gap with server. After I synced the time, the program worked. So it seems the different system time caused connection issue.