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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- Error: The requested name is valid, but no data will by found for the requested type
Error: The requested name is valid, but no data will by found for the requested type
There are two problems there:
1. You have some incorrect bindings.
2. We have a bug in the error handling, and basically have a "crash" instead of treating the invalid bindings properly.
Resolution:
Ad 1. How to resolve the incorrect bindings:
1.1 Right-click on the TextBox you are attempting to bind, and select the "Edit Live Bindings" command. A "Binding Collection Editor" dialog appears.
1.2. The "Bindings" list contains 5 bindings. The first one is empty ("null" in out terminology). This is the one that is causing the errors. Select it, and then press the "Remove" button.
1.3. Optionally, remove other bindings that seem to be duplicate (but they are not causing the error you have reported).
1.4. Press "OK" to close the Binding Collection Editor.
Ad 2. The bug in our error handling will be fixed in the upcoming QuickOPC version (2017.2); but if you do as described above, it should go away anyway.
I hope this helps.
Best regards
Please Log in or Create an account to join the conversation.
I get the error right at the start from visual studio.
If I execute the compiled application (out of Visual studio), then I get the exceptions 01 (see Exception01.jpg) right after start and the exception 02 (see Exception02.jpg) by closing the application.
You also find the current project in the attachment.
Best regards
Please Log in or Create an account to join the conversation.
this is weird, but it appears to be something rather on our side.
Do you get the error right at the start, or when you are closing the application?
Can you please send me the project again, and, if possible, more details to the error(s) - e.g., is it possible to obtain a call stack? (this is for case if we were not able to reproduce it with you project).
Thank you
Please Log in or Create an account to join the conversation.
But if I start the application, the application throws a untreated exception in the overridden method components.Dispose() of Forms1.Designer.cs.
The exception is of type OpcLabs.BaseLib.dll and the additional information which I get is calles "Assertionerror _subscribeDictionary==null".
If I execute the compiled application (out of Visual studio), then I get 2 exceptions:
1. monitoredItemArgumentsArray==null
2. "Assertionerror _subscribeDictionary==null"
Whats the problem?
Please Log in or Create an account to join the conversation.
Browsing the network for computers is done using Windows functions. It is not related to OPC UA. If you get an error at the moment you try to expand a "Network" node or its domain sub-node, then it is a Windows network browsing returning the error. Similarly, even if you know the host where the OPC UA server resides, browsing for OPC UA servers on that computer is (usually, but not always) done by a separate OPC UA server, called LDS (Local Discovery Server). So in the end, you can have a perfectly functioning OPC UA server that you connect to, but if the LDS does not work, it won't be possible to discover it. But
The above, however, is just an explanation and may not have to do with your issue.
I tried to play with the Point Editor in a similar situation you described (when browsing for servers does not work), and entering the server manually. And, I have realized one case in which I can get precisely the same error as you.
The *proper* way to enter a server URL, if you cannot browse for it, is to 1. select the "Any Host" node, and then insert a node with the URL (such as "opc.tcp://192.168.0.1:4840") of your server (in the dialog, this is denoted as inserting "OPC-UA Endpoint Node". This works for me.
The *improper* way to do this is to try to insert a "Host" node. For example, if you select the root node ("Hosts"), and then manually insert a node and type in "opc.tcp://192.168.0.1:4840", you will end up with "host" node that has a name of "opc.tcp://192.168.0.1:4840". That's not right (the host name should be just "192.168.0.1", in this case). If I do this improper procedure, I end up with precisely the same error as you (The requested name is valid, but no data of the requested type was found).
Can you verify whether you have not made this mistake, buy repeating the procedure from the start, in the proper way?
Please Log in or Create an account to join the conversation.
If I browse the Network in the "Point Editor", so I get an error, that no server will be find. But thats wrong. I have a right working SimaticNet server.
I hope, you can help me.
Please Log in or Create an account to join the conversation.
The Live Binding project you have sent me *has* the slash at the end.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The difference is in the trailing forward slash in the server URL. The project that works OK uses
"opc.tcp://192.168.0.1:4840"
"opc.tcp://192.168.0.1:4840/"
In the Live Binding project, you can edit the URL directly in the Form1.Designer.cs file.
Thank you, and best regards
Please Log in or Create an account to join the conversation.
my answer to your questions:
1.) Yes, I tested the traditional coding exactly from the same client computer as with live binding.
2.) See zip-files in attachment
3.) See pdf-file in attachment
Thank you
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Connections, Reconnections, Certificates
- Error: The requested name is valid, but no data will by found for the requested type