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
- Browsing Exception
Browsing Exception
But there are situations in which it is not possible.
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
If I remove the lines and replace it with that you suggest it's work fine.
But Why the same code work in the before release and in new release it crash?
For me is not possible that when I update the library I need to review the old code.
Do you agree?
Thanks,
Massimo
Please Log in or Create an account to join the conversation.
To do so, remove the lines
UACertificateAcceptancePolicy uacert = new UACertificateAcceptancePolicy();
uacert.AcceptAnyCertificate = true;
uadesc.CertificateAcceptancePolicy = uacert;
EasyUAClient.SharedParameters.EngineParameters.CertificateAcceptancePolicy.AcceptAnyCertificate = true;
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
clientOPCUA = new EasyUAClient();
UAEndpointDescriptor uadesc = new UAEndpointDescriptor();
UACertificateAcceptancePolicy uacert = new UACertificateAcceptancePolicy();
uacert.AcceptAnyCertificate = true;
uadesc.CertificateAcceptancePolicy = uacert;
uadesc.UrlString = "opc.tcp://opcuaserver.com:48010";
UANodeElementCollection uaElColl = clientOPCUA.BrowseObjects(_devModel.UAEndpointDesc,UAObjectIds.Server);
As you can see I'm already going to set the CertificateAccetancePolicy.
where is the mistake?
Please Log in or Create an account to join the conversation.
how do you construct your _devModel.UAEndpointDesc? Please post the relevant pieces of code here. Are you setting the CertificateAcceptancePolicy?
I think the error message says quite clearly "Setting an OPC UA certificate acceptance policy specific to an endpoint is not supported, as it cannot be reliably implemented due to limitations of the underlying UA stack. You can set the certificate acceptance policy globally." Isn't that your case?
Best regards
Please Log in or Create an account to join the conversation.
- Scattolaro
- Topic Author
- Offline
- Platinum Member
- Posts: 35
- Thank you received: 1
UANodeElementCollection uaElColl = clientOPCUA.BrowseObjects(_devModel.UAEndpointDesc,UAObjectIds.Server);
I received this exception:
Exception: OpcLabs.EasyOpc.UA.OperationModel.UAException: An OPC-UA operation failure with error ID 'System.NotSupportedException' occurred, originating from '' and with depth of 1. The inner exception, of type "System.NotSupportedException", contains details about the problem. ---> System.NotSupportedException: Setting an OPC UA certificate acceptance policy specific to an endpoint is not supported, as it cannot be reliably implemented due to limitations of the underlying UA stack. You can set the certificate acceptance policy globally.+ Connection attempt #1; last connected at 01/01/0001 00:00:00 (local); unconnected for 00:00:00.1090000.+ The client method called (or event/callback invoked) was 'BrowseMultiple[1]'. --- Fine della traccia dello stack dell'eccezione interna --- in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Browse(IEasyUAClient client, UABrowseArguments browseArguments) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Browse(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseObjects(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Open() in C:\Progetti\AzureDevOps\FDI-FRAMEWORK\DeviceAppOPC\DataAccess\OPCserverCH.cs:riga 463(An OPC-UA operation failure with error ID 'System.NotSupportedException' occurred, originating from '' and with depth of 1. The inner exception, of type "System.NotSupportedException", contains details about the problem.) Trace: in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Browse(IEasyUAClient client, UABrowseArguments browseArguments) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Browse(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor, UABrowseParameters browseParameters) in OpcLabs.EasyOpc.UA.IEasyUAClientExtension.BrowseObjects(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor) in Qualitas.DeviceAppOPC.DataAccess.OPCserverCH.Open() in C:\Progetti\AzureDevOps\FDI-FRAMEWORK\DeviceAppOPC\DataAccess\OPCserverCH.cs:riga 463;
Why?
Can you help me please?
Thanks,
Massimo Scattolaro
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Discovery, Browsing, Browse Dialogs and Controls
- Browsing Exception