When I try to write a value(Type boolean) that I read properly the OPC labs library return me this Exception below:
Exception: OpcLabs.EasyOpc.UA.OperationModel.UAException: An OPC-UA operation failure with error code -1 (0xFFFFFFFF) occurred, originating from 'mscorlib'. The inner exception, of type 'System.InvalidCastException', contains details about the problem. ---> System.InvalidCastException: Cast da 'System.Boolean' a 'System.Object[]' non valido. in System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider) in System.Boolean.System.IConvertible.ToType(Type type, IFormatProvider provider) in System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) in OpcLabs.BaseLib.Utilities.ConvertUtilities.EnrichedChangeType(Object value, Type conversionType, IFormatProvider provider) in OpcLabs.BaseLib.Utilities.ConvertUtilities.CheckedChangeType(Object value, Type conversionType, IFormatProvider provider) in OpcLabs.BaseLib.Utilities.ObjectUtilities.ChangeType(Object value, Type type, Object& result) --- Fine della traccia dello stack dell'eccezione interna --- in OpcLabs.EasyOpc.UA.EasyUAClient.CheckSuccess(OperationResult operationResult) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAWriteValueArguments writeValueArguments) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, Object value, Type valueType) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, Object value) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Write(String nName, Object value)(An OPC-UA operation failure with error code -1 (0xFFFFFFFF) occurred, originating from 'mscorlib'. The inner exception, of type 'System.InvalidCastException', contains details about the problem.) Trace: in OpcLabs.EasyOpc.UA.EasyUAClient.CheckSuccess(OperationResult operationResult) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAWriteValueArguments writeValueArguments) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, Object value, Type valueType) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.WriteValue(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, Object value) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Write(String nName, Object value);
My OPC labs library version is (OpcLabs.EasyOpcUA.dll version:5.52.147.1).
So I attach 2 screenshot of UAExpert that work properly(on read and write) but the OPCLabs library don't work on write.
Can you help me please? Where is it the error?
Thanks