Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

I Keep Receiving an Error When Trying to Connect to OPC Server

More
10 Mar 2022 19:54 #10729 by support
Hello.

Can you post here a screenshot of the Connectivity Explorer, showing the node that gives the problem?

Thank you

Please Log in or Create an account to join the conversation.

More
10 Mar 2022 16:47 #10726 by johndoe1234
I apologize if I didn't make this clear but I am not currently working in the code, I am just using the server address to try to connect via the provided connectivity explorer.

Please Log in or Create an account to join the conversation.

More
10 Mar 2022 15:59 #10724 by support
Hello.

The HostNotFound is reported by Windows to us, so either the host name is specified as you intended, but Windows cannot resolve it, or somehow the host name passed in was not the one intended.

Can you post here the piece of code that gives the error, and the values you are passing into the QuickOPC method?

Thank you

Please Log in or Create an account to join the conversation.

More
10 Mar 2022 13:14 #10723 by johndoe1234
Sorry, I actually did realize that shortly after posting but I also tried it under adding a UA network and it gave the error:

"UA SDK error (SocketErrorCode=HostNotFound) in 'DiscoveryClient.FindServersOnNetwork'. No such host is known
+ The client method called (or event/callback invoked) was 'Discover'."

Once again the part where I tried on another client and it worked with no issues still applied. Sorry for the initial confusion. Please let me know if there is something I am doing wrong again or if there is a setting or something I need to change. Thanks so much for the help.

Please Log in or Create an account to join the conversation.

More
09 Mar 2022 20:30 #10721 by support
Hello.

You are using EasyDAClient object, which is for OPC Classic (COM/DCOM based), with a URL of an OPC UA (Unified Architecture) server.

Use the EasyUAClient if you want to use OPC UA.

If your intent is to use OPC Classic, and you have not put in "opc.tcp://myserverurl" there deliberately, put the relevant piece of code here for review.

Best regards

Please Log in or Create an account to join the conversation.

More
09 Mar 2022 20:24 #10720 by johndoe1234
Hello!
When I try to connect to the OPC server I have set up, every time I get the error:
"The requested OPC Data Access technology 'Unknown' is not supported. Check the scheme "opc.tcp" in server URL string "opc.tcp://myserverurl" .
+The client method called (or event/callback invoked) was 'BrowseNodes'."
I have tried removing the "opc.tcp" at the beginning thinking that maybe it automatically adds that as all OPC servers start with that, the same error occurred but instead with the "myserverurl" part.
I know for a fact that the OPC server is running and working because I was able to connect to it using a different OPC client that our company uses for other things.
If you have any ideas or suggestions on what the issue might be, please let me know.

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.075 seconds