Communication failured vía MIP SDK

We have a problem with the connection whit the event server vía MIP SDK, this was the logs from de aplication.

Windows logs:

Error communicating with: sci-vg-camp.apba.local:7563 with message: Se ha terminado la conexión: La conexión ha terminado de forma inesperada.Exception details:

System.Net.WebException: Se ha terminado la conexión: La conexión ha terminado de forma inesperada.

en VideoOS.Event.Server.Communication.Corporate.RecorderStatusService2Central.CheckTokenRefreshOrRethrowException(Exception e)

MIP Logs (Rx)

Content-Type: text/xml; charset=utf-8

ResponseCode: 500

ExchangeId: 3e6c5bd9-b462-4e32-a8bb-04ef75a6c598

ServiceName: ServerCommandService

PortName: BasicHttpBinding_IServerCommandService

PortTypeName: IServerCommandService

Headers: {X-Frame-Options=SAMEORIGIN, Cache-Control=private, Server=Microsoft-IIS/10.0, X-AspNet-Version=4.0.30319, content-type=text/xml; charset=utf-8, Content-Length=2853, Date=Tue, 20 Feb 2024 13:51:07 GMT, X-Powered-By=ASP.NET}

Payload: <s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/”><s:Body><s:Fault>a:InternalServiceFaultNo MediaTypeFormatter is available to read an object of type ‘TokenResponse’ from content with media type ‘text/html’.No MediaTypeFormatter is available to read an object of type ‘TokenResponse’ from content with media type ‘text/html’. en System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)&[xd](javascript:void(0); “xd”);

en System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, IEnumerable`1 formatters, CancellationToken cancellationToken)&[xd](javascript:void(0); “xd”);

en VideoOS.IdentityServer.Common.IdpClientBase.<Send>d__12`1.MoveNext()&[xd](javascript:void(0); “xd”);

-– Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción —&[xd](javascript:void(0); “xd”);

en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&[xd](javascript:void(0); “xd”);

en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&[xd](javascript:void(0); “xd”);

en VideoOS.Management.Server.BasicAuthenticationModule.<>c__DisplayClass6_1.<<ValidateUser>b__0>d.MoveNext()&[xd](javascript:void(0); “xd”);

-– Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción —&[xd](javascript:void(0); “xd”);

en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&[xd](javascript:void(0); “xd”);

en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&[xd](javascript:void(0); “xd”);

en VideoOS.Management.Server.BasicAuthenticationModule.ValidateUser(String username, String password, ClaimsPrincipal& principalOut)&[xd](javascript:void(0); “xd”);

en VideoOS.Management.Server.BasicAuthenticationModule.AuthenticateUser(String authenticationHeaderValue, ClaimsPrincipal& principal)&[xd](javascript:void(0); “xd”);

en VideoOS.Management.Server.BasicAuthenticationMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)&[xd](javascript:void(0); “xd”);

en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)&[xd](javascript:void(0); “xd”);

en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)&[xd](javascript:void(0); “xd”);

en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)&[xd](javascript:void(0); “xd”);

en System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)System.Net.Http.UnsupportedMediaTypeException</s:Fault></s:Body></s:Envelope>

en VideoOS.Event.Server.Communication.Corporate.RecorderStatusService2Central.GetStatus(Guid sessionId, Int32 millisecondsTimeout)

en VideoOS.Event.Server.Communication.Corporate.StatusSessionRecorder.Run()

You need to describe what you do.

Do you have a standalone application based on MIP SDK or a plugin? (Event Server, Smart Client, Management Client?)

What product and version is XProtect?

What version is the MIP SDK you build with?

Does XProtect work as expected and you only see errors when using your app/plugin?

What is the call in the MIP SDK that cause this error to happen? Please show with a snippet of your source code.