OPCFoundation / UA-.NETStandard

OPC Unified Architecture .NET Standard
Other
1.96k stars 948 forks source link

BadConnectionClosed 'Remote side closed connection' #1183

Closed BasilPavlov closed 3 years ago

BasilPavlov commented 3 years ago

Type of Issue [ ] Bug [ ] Enhancement [ ] Compliance [ ] Question [+] Help wanted

Hi, I am new at developing apps to communicate with OPC and right now trying to connect to Matrikon OPC Server and create Client to write and read some data. And face with the issue BadConnectionClosed 'Remote side closed connection' while executing CoreClientUtils.SelectEndpoint("opc.tcp://" + Dns.GetHostName() + ":135/Matrikon.OPC.SiemensPLC.1", false, 10000)

image

I am able to connect to OPC server using Matrikon Explorer

image

I have tried to connect to OPC server installed lockaly and on remote server and get the same issue

Environment (please complete the following information):

AlinMoldovean commented 3 years ago

Hi @BasilPavlov ,

The communication library of this repository is for the OPC UA protocol.

The server you are trying to connect to is an OPC DA Server, i.e. OPC Classical. For connecting to it you need an OPC DA Client, like Matrikon OPC Explorer or Softing OPC Demo Client.