Professional Communication
Software Development Tools

OPC Foundation member and certified 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 or issues. You do not have to own a commercial license in order to use the OPC Labs supportOur team is actively monitoring the forums, and provides replies as soon as possible.

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.

OPCUA: AcceptAnyCertificate does not work in v.5.84.192

More
11 Sep 2026 12:13 #14688 by support
Hello,
this appears to be a different issue, please use a separate forum thread in such situation next time please.

Version 5.84 is based on a newer UA-.NETStandard SDK (1.5.378.106) than version 5.83, and in many cases there are more internal checks done inside the SDK, which explains some issues.

However, I could not reproduce your issue; it certainly works well for me with the previous projects you have sent. Please describe how to reproduce. It may very well also be a legitimate error.

Regards

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

More
11 Sep 2026 11:59 #14687 by Andriy
Hello,
We are still experiencing the issue with "OpcLabs.QuickOpc" Version="5.84.374". Again, it work fine works fine with the same source code and configuration in v "5.83.477"
Code:
[13:44:34 ERR] OnServerConditionChanged: endpoint opc.tcp://xxx:4840 changed to Disconnected. Error: OpcLabs.UAEngine=1 UA SDK error (Opc.UA.ServiceResult=0x80010000) in 'static Session.Create'. OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries. + Connection attempt #1; last connected at 1/1/0001 12:00:00 AM (local); unconnected for 00:00:00.0310000. + The client method called (or event/callback invoked) was 'ServerConditionChanged'. OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80010000) in 'static Session.Create'. OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries. + Connection attempt #1; last connected at 1/1/0001 12:00:00 AM (local); unconnected for 00:00:00.0310000. + The client method called (or event/callback invoked) was 'ServerConditionChanged'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries.    at Opc.Ua.Client.Session.UpdateNamespaceTable(DataValueCollection values, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader)    at Opc.Ua.Client.Session.FetchNamespaceTablesAsync(CancellationToken ct)    --- End of inner exception stack trace --- == Activity Trace == Following (15) events were gathered during the action on activity ID [15], in the order of first occurrence:   SDK trace: 09/11/2026 13:44:33.997 Imported the PFX private key for zzz (with Private Key).   2*[44] Exception: {Opc.Ua.ServiceResultException} [801A0000] 'Certificate is not trusted.'   [44] SDK trace: 09/11/2026 13:44:34.204 Validation errors suppressed: zzz   2*Exception: {Opc.Ua.ServiceResultException} [801A0000] 'Certificate is not trusted.'   SDK trace: 09/11/2026 13:44:34.252 Validation errors suppressed: zzz   [43] Exception: {Opc.Ua.ServiceResultException} Retrieved namespace list contain no entries.   5*Exception: {System.AggregateException} One or more errors occurred.   2*Exception: {Opc.Ua.ServiceResultException} Channel has been closed. Events starting with activity ID in may not necessarily be related to the current action. PollItems: endpoint opc.tcp://xxx:4840, item ns=1;s=PFC200_WAGO_OPC_SL01 failed. Error: OpcLabs.UAEngine=1 UA SDK error (Opc.UA.ServiceResult=0x80010000) in 'static Session.Create'. OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries. + Connection attempt #1; last connected at 1/1/0001 12:00:00 AM (local); unconnected for 00:00:00.0310000. + The client method called (or event/callback invoked) was 'ServerConditionChanged'. OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80010000) in 'static Session.Create'. OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries. + Connection attempt #1; last connected at 1/1/0001 12:00:00 AM (local); unconnected for 00:00:00.0310000. + The client method called (or event/callback invoked) was 'ServerConditionChanged'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadUnexpectedError}. Retrieved namespace list contain no entries. Retrieved namespace list contain no entries.    at Opc.Ua.Client.Session.UpdateNamespaceTable(DataValueCollection values, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader)    at Opc.Ua.Client.Session.FetchNamespaceTablesAsync(CancellationToken ct)    --- End of inner exception stack trace ---
 

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

More
11 Sep 2026 09:57 #14685 by support
Hello,

please rebuild and retest with QuickOPC 5.84.374, the issue should be fixed.

Best regards
 

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

More
10 Sep 2026 10:53 #14683 by support
Hello.

Thank you for reporting this. We will have a fix soon.

Best regards
 

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

More
07 Sep 2026 14:26 #14679 by Andriy
The global certificate acceptance policy does not appear to be honored in v.
Code:
5.84.192
:

EasyUAClientCore.SharedParameters.EngineParameters.CertificateAcceptancePolicy.AcceptAnyCertificate = true

The server certificate is indeed missing the endpoint URI, however, this is tolerated in v. 5.83.477
We get the following error from the QuickOPC library in v. 5.84.192

PollItems: endpoint opc.tcp://xxxx, item yyy failed. Error: OpcLabs.UAEngine=1 UA SDK error (Opc.UA.ServiceResult=0x80170000) in 'static Session.Create'. OPC UA service result - {BadCertificateUriInvalid}. The Application in the EndpointDescription (urn:vmscada:zzz) is not in the Server Certificate (xxx). [80170000] 'The Application in the EndpointDescription (urn:vmscada:yyy) is not in the Server Certificate (zzz).'
+ Connection attempt #1; last connected at 1/1/0001 12:00:00 AM (local); unconnected for 00:00:00.0320000.
+ This error can be reported by the OPC-UA server if the client application URI has changed but an old application instance certificate was kept. Try to remove and recreate the application instance certificate.
 at OpcLabs.BaseLib.Reflection.Extensions.MethodBaseExtension.FoldedInvoke(MethodBase methodBase, Object obj, Object[] parameters) at OpcLabs.EasyOpc.UA.Sdk.Shims.SessionShim.ValidateServerCertificateApplicationUri(X509Certificate2 serverCertificate, ConfiguredEndpoint endpoint) at OpcLabs.EasyOpc.UA.Sdk.Shims.SessionShim.Open2(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain, Boolean closeChannel) at OpcLabs.EasyOpc.UA.Sdk.Shims.SessionShim.Create(ApplicationConfiguration configuration, ConfiguredEndpoint endpoint, Boolean updateBeforeConnect, Boolean checkDomain, String sessionName, UInt32 millisecondsSessionTimeout, Func`2 identityFunction, IList`1 preferredLocales, Action`2 domainCheckError, Action`1 setupSession, Action`2 setupTransportChannel, CertificateIdentifier applicationCertificate, ICertificatePasswordProvider certificatePasswordProvider) at OpcLabs.EasyOpc.UA.Toolkit.Sdk.ToolkitSession.Create(ApplicationConfiguration configuration, ConfiguredEndpoint endpoint, Boolean updateBeforeConnect, Boolean checkDomain, String sessionName, UInt32 millisecondsSessionTimeout, Func`2 identityFunction, IList`1 preferredLocales, Action`2 domainCheckError, Action`1 setupSession, Action`2 setupTransportChannel, CertificateIdentifier applicationCertificate, ICertificatePasswordProvider certificatePasswordProvider, UAClientSessionBase clientSession)

Following (17) events were gathered during the action on activity ID [15], in the order of first occurrence:
  SDK trace: 09/07/2026 15:53:25.116 Imported the PFX private key for [zzz] (with Private Key).
  2*[44] Exception: {Opc.Ua.ServiceResultException} [801A0000] 'Certificate is not trusted.'
  [44] SDK trace: 09/07/2026 15:53:25.358 Validation errors suppressed: [xxx],

We did multiple attempts to suppress the validation, including:
  • setting per-endpoint certificate acceptance policy:
    Code:
      _endpointDescriptor = new UAEndpointDescriptor(settings.EndpointUrl); var policy = new UACertificateAcceptancePolicy() {     AcceptAnyCertificate = settings.AcceptAnyCertificate,     AllowUserAcceptCertificate = false, }; policy.TrustEndpointUrlString(_endpointDescriptor.UrlString); policy.TrustEndpointUrlString("urn:vmscada:xxx"); _endpointDescriptor.CertificateAcceptancePolicy = policy;
  • using test policy:

None of the above suppress the validation.
Code:
policy = UACertificateAcceptancePolicy.TestingInsecure;
None of the above suppress the validation.Questions:
  • how we can suppress the validation error?
  • why AcceptAnyCertificate property does not have the expected effect?
  • if we’re using isolated client, does it make sense to configure global EasyUAClientCore.SharedParameters.EngineParameters.CertificateAcceptancePolicy, or should we set policy per endpoint?

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

Moderators: supportvaclav.zaloudek
Time to create page: 0.130 seconds