dathlin / OpcUaHelper

一个通用的opc ua客户端类库,基于.net 4.6.1创建,基于官方opc ua基金会跨平台库创建,封装了节点读写,批量节点读写,引用读取,特性读取,历史数据读取,方法调用,节点订阅,批量订阅等操作。还提供了一个节点浏览器工具。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Force reconnect reason=BadConnectionClosed 'Remote side closed connection'

caradilin opened this issue · comments

Hi:
我开发了一款客户端软件,连接的OPCUA server是使用labview编写的。我在程序启动时,建立了单态的opcua 客户端,在程序运行时出现此错误。这并未触发ReconnectStarting事件,与此同时在使用Uaexpert客户端进行测试时并未出现此问题。

06/06/2023 17:33:04.253 KEEP ALIVE LATE: 0.0102529s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5271
06/06/2023 17:33:04.269 KEEP ALIVE LATE: 0.0097328s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5292
06/06/2023 17:33:04.284 KEEP ALIVE LATE: 0.0079604s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5313
06/06/2023 17:33:04.314 KEEP ALIVE LATE: 0.0089844s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5355
06/06/2023 17:33:04.330 KEEP ALIVE LATE: 0.0080157s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5376
06/06/2023 17:33:04.335 Session: Unexpected error invoking KeepAliveCallback.
 MissingMethodException '找不到方法:“Void Opc.Ua.Client.SessionReconnectHandler..ctor()”。'

06/06/2023 17:33:04.346 KEEP ALIVE LATE: 0.0073916s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5397
06/06/2023 17:33:04.361 KEEP ALIVE LATE: 0.0040681s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5418
06/06/2023 17:33:04.377 KEEP ALIVE LATE: 0.0110701s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5439
06/06/2023 17:33:04.393 Session RECONNECT starting.
06/06/2023 17:33:04.393 KEEP ALIVE LATE: 0.0093491s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/5460
06/06/2023 17:33:04.393 Session REPLACING channel.
06/06/2023 17:33:04.395 TransportChannel RECONNECT: Reconnecting to opc.tcp://192.168.110.31:8888/.
06/06/2023 17:33:04.395 ChannelId 0: in Connecting state.
06/06/2023 17:33:04.401 ChannelId 0: in Opening state.
06/06/2023 17:33:04.401 ChannelId 0: Token #0 created. CreatedAt=09:33:04.401. Lifetime=-1.
06/06/2023 17:33:04.404 Security Policy: http://opcfoundation.org/UA/SecurityPolicy#None
06/06/2023 17:33:04.405 Sender Certificate: (none)
06/06/2023 17:33:04.405 SECURE CHANNEL CREATED [.NET Standard ClientChannel UA-TCP 1.4.371.91] [ID=55] Connected To: opc.tcp://192.168.110.31:8888/ [None/None/Binary]
06/06/2023 17:33:04.405 ChannelId 55: Token #1 activated. CreatedAt=09:33:04.401. Lifetime=3600000.
06/06/2023 17:33:04.406 ChannelId 55: in Open state.
06/06/2023 17:33:04.406 ChannelId 55: Token Expiry 06/06/2023 10:33:04, renewal scheduled in 2699996 ms.
06/06/2023 17:33:04.406 CLIENTCHANNEL SOCKET CONNECTED: 0086B698, ChannelId=55
06/06/2023 17:33:04.406 ChannelId 54: in Closing state.
06/06/2023 17:33:04.409 ChannelId 54: Force reconnect reason=BadConnectionClosed 'Remote side closed connection'
06/06/2023 17:33:04.410 Publish #278906, Reconnecting=True, Error: BadSecureChannelClosed
06/06/2023 17:33:04.411 Publish abandoned after error due to reconnect: BadSecureChannelClosed
略
06/06/2023 17:33:05.028 Publish #279430, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:05.027 Publish #279429, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:04.941 KEEP ALIVE LATE: 0.3378851s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=42/5076
06/06/2023 17:33:09.108 Publish #284353, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.109 Publish #284354, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.111 Publish #284358, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.112 Publish #284364, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.113 Publish #284359, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.113 Publish #284365, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.112 Publish #284363, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.112 Publish #284361, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.101 Publish #284344, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.110 Publish #284357, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.108 KEEP ALIVE LATE: 4.5045293s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=34/287
06/06/2023 17:33:09.112 Publish #284360, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.107 Publish #284351, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.110 Publish #284356, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.105 Publish #284349, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.073 Publish #284302, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.112 Publish #284362, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.106 Publish #284350, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.093 Publish #284331, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.104 Publish #284348, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.137 KEEP ALIVE LATE: 0.0052507s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=2/279
06/06/2023 17:33:09.258 Session: Unexpected error invoking KeepAliveCallback.
 MissingMethodException '找不到方法:“Void Opc.Ua.Client.SessionReconnectHandler..ctor()”。'

06/06/2023 17:33:09.076 Publish #284304, Reconnecting=False, Error: BadSecureChannelClosed
06/06/2023 17:33:09.268 KEEP ALIVE LATE: 0.009973s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=59/189
06/06/2023 17:33:09.284 KEEP ALIVE LATE: 0.0112905s, EndpointUrl=opc.tcp://192.168.110.31:8888/, RequestCount=21/210