We wrote an OPC UA Server using Unified Automation .NET Server SDK version 2.5.6 (.NET Framework 4.6.1) that is running on a publicly visible server.
When trying to connect to the server with UaExpert (1.4.4) and the public URL, we get the following error:
After closing the error message, everything works fine and we connect to the OPC UA Server.URL not found
There was no exact match for the specified URL in the server's endpoints, using the first server certificate found for connecting.
The problem appears to be the absence of a slash (/) at the end ofthe URL.
[url]opc.tcp://<our-domain-here>:4840/[/url] Works
[url]opc.tcp://<our-domain-here>:4840[/url] Gives "URL not found" error
The config file does not have a slash at the end of the endpoint.
We also noticed the same "issue" when running at localhost. The endpoint in the config file has no / at the end while the endpoint printed out by the server does.
Where does the slash come from?
Is there a way to make the connection work with or without the slash without errors/warnings?
I found this on the OPC Foundation's github page. Looks like this might be a .NET issue:
https://github.com/OPCFoundation/UA-.NET/issues/35
Sincerely,
Jonathan