Hello,
I develop a plugin that work fine on 2023R2 Client and now I testing on 2023R3.
The Plugin register the MessageReceiver.
And in some condition need to set the alarm to “CLOSED”
alarm.State=11;
try
{
IAlarmClient alarmClient = _alarmClientManager.GetAlarmClient(EnvironmentManager.Instance.MasterSite.ServerId);
//alarmClient.OpenClient();
//System.Threading.Thread.Sleep(5000);
alarmClient.UpdateAlarm(alarm.Id, "Automatic Close Alarm", 11,1, DateTime.Now,"");
}
catch (Exception ex)
{
EnvironmentManager.Instance.ExceptionDialog("MessageHandler", ex);
}
On client 2023R3 I get this error:
************** Outer Exception **************
Tipo di eccezione:System.ServiceModel.FaultException
Messaggio di eccezione:An error occurred when verifying security for the message.
Sorgente eccezione:mscorlib
Sito di destinazione dell’eccezione: HandleReturnMessage
Server stack trace:
in System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
in System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
in System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
in System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
in System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
in System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
in IAlarmCommand.UpdateAlarm(Guid id, String text, Int32 state, Int32 priority, DateTime time, String assignedTo)
in VideoOS.Platform.Proxy.AlarmClient.AlarmClientCredentials.UpdateAlarm(Guid id, String text, Int32 state, Int32 priority, DateTime time, String assignedTo)
in AlarmPopup.Background.AlarmPopupBackgroundPlugin.CameraListReceiverAlarmLine(Message message, FQID destination, FQID source)
************** System Info **************