C# client does not coneect with server, but ua expert connects well.|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
C# client does not coneect with server, but ua expert connects well.
Avatar
Hyeji Jeon
New Member
Members
Forum Posts: 1
Member Since:
01/02/2023
sp_UserOfflineSmall Offline
1
02/01/2023 - 18:36
sp_Permalink sp_Print

I'm a student who wants to create a digital twin environment using opc ua.

I purchased an opc ua server from a robot company. And Through this, i want to extract robot data and receive it to unity.

So I strated the first step, extracting data from the opc ua server, but i got an eerror right away.

The problem came when i was trying to extrat data from the server using a c# script.

The error message said connect error. So I tried other scirpts that I found on the internet, but the same error was repeated.

Also the C# scripts I used first was from where I bought the server, so it doesn't seem to be a problem wih the script.(because the company said it worked well when they tried it with same c# script )

The irony is that the server works well when connected as an UA Expert.

This is my first time using OPC UA, and I can't find the cause of the problem, so I want to ask for help.Cry

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/01/2023 - 22:44
sp_Permalink sp_Print

You can find working C# samples here:

https://github.com/OPCFoundati.....enceClient

See if you can get that to connect.

Note that you have to have a certificate configured for your client if you want to use security and UA server always requires security by default. You may be able connect if you disable security on the server temporarily.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 32
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855