I am having a problem connecting to my OPCUA server. When I connect I get an error of: "The discoveryUrl url must be a syntatically valid URL."
My discoveryUrl is: "opc.tcp://H1002496-01:4880/CM100 OpcUa". I have tried removing the space and the error become a generic one about not finding the server. I have tried to use the following workaround by using ASCII:
Code: Select all
char space = (char)32;
test_session.Connect("opc.tcp://H1002496-01:4880/CM100" + space + "OpcUa", SecuritySelection.None);
EDIT: it's worth noting that I've tried the original string, with a space, in UAExpert and it works fine.