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
- Discovery, Browsing, Browse Dialogs and Controls
- BrowseDataNodes stuck when client not trusted
BrowseDataNodes stuck when client not trusted
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
- Offline
- Platinum Member
- Posts: 106
- Thank you received: 0
i found the problem :
the problem was i that the function that runs the BrowseDataNodes was in Task,
and this function wasn't in try-catch block, so i think it was stuck, and now after i add the try-catch block i saw that exception was thrown.
thank you for your help,
Adi Damty
Please Log in or Create an account to join the conversation.
The browsing dialog code is large and complex, but as far as the actual browsing invocation goes, it is totally straightforward - it just instantiates an EasyUAClient and calls BrowseNodes.
It would still be worth trying to try:
- Check what happens if you rebuild the demo app and run it - does it block, or throw an exception?
- Check what happens if you add a simple BrowseDataNodes call somewhere to the demo app (such as on press of some button) - does it block, or throw an exception?
- Check if you are using the same project setting as the demo app - couldn't there be some influence? We are targeting "AnyCPU", and .NET Framework 3.5 (SP1). What are your settings, in this respect?
Best regards
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
- Offline
- Platinum Member
- Posts: 106
- Thank you received: 0
My opc server is not in public url, and i can't expose it because this it's in company network.
i also try to minimize all the windows and see if the application come up with pop-up window, and this is not the case.
i also try the setting you suggeted but the same thing happened - the application is stuck.
in the Demo OPC-UA Application i saw this doesn't happened and exception is thrown, and also this is winfor application, so you could provide me the code of this demo application ?
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
Is your server on a public URL for me to try?
In the WinForms scenario, sometimes I have seen that the application has come up with pop-up window that was hidden behind everything else. If the window was a dialog requiring user attention, the connection could have been blocked. Can you please check this, by minimizing all visible windows, and then scrolling through windows using Alt+Tab, to make sure this is not the case.
Also, we have slightly different behavior in applications without user interface, and in those with user interface. I have some suspicion that it might be the user interface part that is related to the problem. Without user interface, some operations simply fail; with the user interface, they ask the user. Just for the purpose of investigation, can you please try the following settings:
EasyUAClient.SharedParameters.Engine.AllowCertificatePrompt = false;
EasyUAClient.AdaptableParameters.Session.AllowEndpointDomainPrompt = false;
EasyUAClient.AdaptableParameters.Session.CertificateAcceptancePolicy.AllowUserAcceptCertificate = false;
Thank you
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
- Offline
- Platinum Member
- Posts: 106
- Thank you received: 0
any progress with this ?
how can i get exception when the client is not trusted on the server, instead of the application is stuck ?
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
- Offline
- Platinum Member
- Posts: 106
- Thank you received: 0
client behavior, when i run my program as windows winform ( for debug ).
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
i get popup validation error BadCertificateUntrusted and a question afterwards if i accept the certificate or not
- are you talking about the client behavior or server behavior?
Please Log in or Create an account to join the conversation.
- adid@contel.co.il
- Offline
- Platinum Member
- Posts: 106
- Thank you received: 0
i tried the beta Version 5.23 now, and still have a problem - now i get popup validation error BadCertificateUntrusted and a question afterwards if i accept the certificate or not. no matter what i choose the application is stuck. i expected the BrowseDataNodes function to throw exception if the client is not trusted at the server.
1. i create a project with two enteries - winform for debug only and windows service.
2. when the server trust the client it's all working fine, but when doesn't trust the client this problem occuerd.
3. i will also mention that when i use the same senario at the asp.net application exception is thrown.
thank you,
Adi Damty
Please Log in or Create an account to join the conversation.
Please also provide following information:
- What kind of project are you creating? Is it e.g. a Windows Forms app, console app, Windows service, Web (ASP.NET) app, or something else?
- How is it with the trust in the opposite direction - i.e. is the client trusting the server? For start, there are ways to "skip" the security checks - please see the documentation.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Discovery, Browsing, Browse Dialogs and Controls
- BrowseDataNodes stuck when client not trusted