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.

Node is not selectable

More
01 Dec 2021 16:29 #10415 by wsalvin
Replied by wsalvin on topic Node is not selectable
Okay,
We will manage with two stages.
Thank for your support.
Best Regards.

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

More
01 Dec 2021 13:13 #10412 by support
Replied by support on topic Node is not selectable
Unfortunately, certainly not in 2-3 months.

Maybe you could separate the functionality by endpoint? I.e. the user could be given a choice to select the endpoints in the "first stage" in your user interface (we have dialoga/controls for that). And then ("second stage") use the dialog you are using now, but start it for a single endpoint that the users selects upfront?

Best regards

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

More
29 Nov 2021 13:57 #10407 by wsalvin
Replied by wsalvin on topic Node is not selectable
Hello,
Thank you for the clarification.
You write “This is something we may address in some future version, but currently it is not possible.”
Is-it something you could do in near future (2 or 3 months) or do we have to start develop our own brother?
Regards

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

More
29 Nov 2021 13:57 #10406 by wsalvin
Replied by wsalvin on topic Node is not selectable
Hello,
Thank you for the clarification.
You write “This is something we may address in some future version, but currently it is not possible.”
Is-it something you could do in near future (2 or 3 months) or do we have to start develop our own brother?
Regards

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

More
28 Nov 2021 13:49 #10405 by support
Replied by support on topic Node is not selectable
Hello,
thank you for explanation. I understand what you want to achieve. And, it is a reasonable thing. However, there will be issues with it.

The current design of the dialog does not allow you to pass in the endpoints which the user will see as browse nodes and that will be expandable into the OPC UA address space contents. The user can add the endpoints manually - but he would have to do it every time. The only endpoint that will be always shown as a browse node is the one that is inside the "current" browse node (browseDialog.InputsOutputs.CurrentNodeDescriptor), but there is only one (and it has to be part of the path that leads to a node = not just the endpoint "standalone").

This is something we may address in some future version, but currently it is not possible.

Regarding questions 3 and 4, you need to serialize/deserialize the contents of browseDialog.InputsOutputs.SelectionDescriptors; and optionally, browseDialog.InputsOutputs.CurrentNodeDescriptor (so that the dialog remembers the "starting point").

If you were programming in .NET, doing so would be easy, because the objects in question already support the binary and XML serialization in the standard .NET way. However, these features are not available in COM. That is really unfortunate, but it looks like that you will have to write code to go "inside" these objects and basically serialize/deserialize everything that is there, which is doable but would be some task (OK. not everything, because some properties are just derived from values of other properties - I can help with the details).

Best regards

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

More
25 Nov 2021 08:07 #10394 by wsalvin
Replied by wsalvin on topic Node is not selectable
Yes, it’s what we want to achieve.
Let me describe the story with more details.
First time the user connects, we provide him some initial server endpoints to start with and then let him to select the nodes in these servers. This list is stored in a configuration text file (URL, user and password).
The user browses the server endpoints, select some UA nodes he wants to monitor, and perhaps also delete default server endpoint and add new ones (with or without UA nodes selected).
When he quits the browser, we want to write in a configuration text file the new state (server’s endpoints and UA node selected) to let the user retrieve all what he configured next time he browses.
In parallel, our application uses the selected UA nodes to monitor them.

The questions are:
  1. Is it possible do that with the browser?
  2. How do we configure the initial server endpoints?
  3. Which information have we to store in the text configuration file in order to retrieve “the state “next time?
  4. How do we initialize the selection descriptors with the text configuration file content?

Regards

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

More
24 Nov 2021 17:10 #10393 by support
Replied by support on topic Node is not selectable
OK, let's first stabilize some terminology. The term "node" is unfortunately overloaded, and in our discussion, it is used in two meanings:

1) Anything displayed in the UABrowseDialog is a "browse node". It can be e.g. a root node, host node, endpoint node, etc.
2) And, one kind of the above nodes is the actual OPC UA node in a server. Let's call it "UA node" then.

In the Mode.SelectElementType property of the UABrowseDialog, you can specify which kind of browse nodes (1) will be selectable in the dialog. That is, those will be the only kind of nodes that you can pass in, and that you will get out of the dialog. By default, the SelectElementType is set to UAElementType.Node, meaning that the UABrowseDialog will be used for selecting UA nodes (2) only.

In this mode, you really cannot pass in selection descriptors where the browse nodes only have endpoint descriptor in them, but no node descriptor. In this mode the dialog needs both.

Maybe it's not clear to me what you are trying to achieve. Did you want to provide some initial server endpoints to the user to "start with" - but then let him to select the nodes in these servers?

Regards

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

More
22 Nov 2021 15:41 #10375 by wsalvin
Replied by wsalvin on topic Node is not selectable
Hello,
Thanks, your « trick » works, With the new release of the component QuickOPC 2021.3 I’m now able to run the example both in vb, c# and also in Delphi .

Now back to the initial question, I would like to start the browser with the two nodes you suggest, the first time I open the browser.

I’m not able to find what is mandatory to configure in the UABrowseNodeDescriptor that are added to UABrowseNodeDescriptorCollection. Seems “EndpointDescriptor.UrlString” is not enough.
Actually, I would like to do something like this:
    // Node 1
    MyUABrowseNodeDescriptor1 := CoUABrowseNodeDescriptor.Create;
    MyUABrowseNodeDescriptor1.EndpointDescriptor.UrlString := 'opc.tcp://opcua.demo-this.com:51210/UA/SampleServer';
    BrowseDialog.InputsOutputs.selectionDescriptors.Add(MyUABrowseNodeDescriptor1);
    // Node 2
    MyUABrowseNodeDescriptor2 := CoUABrowseNodeDescriptor.Create;
    MyUABrowseNodeDescriptor2.EndpointDescriptor.UrlString := 'opc.tcp://opcua.demo-this.com.:51210/UA/SampleServer'; // trick point after com
    BrowseDialog.InputsOutputs.selectionDescriptors.Add(MyUABrowseNodeDescriptor2);
   //Run browser an display the two nodes.
   BrowseDialog.ShowDialog(nil);
Should I open a new call for that?

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

More
19 Nov 2021 08:48 #10369 by support
Replied by support on topic Node is not selectable
Hello,

after accepting the certificate manually, it should work; but, that is a different problem and, if it remains, please post it in a separate forum thread.

For testing the issue at hand, if you do not have yet more OPC UA server, you can "trick" the dialog by using equivalent URLs that lead to the same server. For example, you can add a dot after the ".com" in the domain name, OR you can replace the DNS qualified host name with the numerical IP address. So you would end up with two or three server endpoints that will all work with the same server, but to the dialog/component, they look like separate ones. I.e. these should all work:
  • opc.tcp://opcua.demo-this.com:51210/UA/SampleServer

  • opc.tcp://opcua.demo-this.com.:51210/UA/SampleServer

  • opc.tcp://168.63.108.180:51210/UA/SampleServer
Can you retest this way?

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

More
18 Nov 2021 08:51 #10362 by wsalvin
Replied by wsalvin on topic Node is not selectable
Thank for the suggestion.
I tried the vb exemple you suggest.
We are close to the solution.
When i add my host 'opc.tcp://localhost:49320' that is kepserveEX 6.6 I get the warning about 'self signed' and if I "accept the certificat anyway" i get the following errors. so i can' select one node on it.
But The good point is that if I select one node on "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer" and i quit, the next loop all is again on browser (My host with the error and the selected node).

So now I have two issues
  1. Reproduce this behavior in Delphi
  2. find a way to Add UA host self signed in VB
Exceptions
 
Type: OpcLabs.EasyOpc.UA.Engine.UAEngineException
Data: 
HelpLink: 
HResult: -2146233088 (0x80131500)
InnerException:
    OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80130000) in 'static Session.Create'. OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
    + Connection attempt #1; last connected at 01/01/0001 00:00:00 (local); unconnected for 00:00:00.
    + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
    + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
     --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
       --- Fin de la trace de la pile d'exception interne ---
    Activity Trace:
        Following (9) events were gathered during the action on activity ID [8], in the order of first occurrence:
          Exception: {Opc.Ua.ServiceResultException} Self Signed Certificate is not trusted. IssuerName: CN=KEPServerEX/UA Server, O=Unknown, C=FR, DC=DEV-W-TOKYO
          Exception: {System.IO.IOException} Descripteur non valide 
          SDK trace: CreateSession Called. RequestHandle=1, PendingRequestCount=1
          [16] SDK trace: Token #0 created. CreatedAt = 08:24:10.212 . Lifetime = 3600000
          [7] Exception: {Opc.Ua.ServiceResultException} Error received from remote host: An error occurred verifying security.
          3*Exception: {Opc.Ua.ServiceResultException} Error establishing a connection.
          SDK trace: CreateSession Completed. RequestHandle=1, PendingRequestCount=0, StatusCode=Bad
        Events starting with activity ID in [] may not necessarily be related to the current action.
 
    Data:
        ErrorId: OpcLabs.UAEngine=1
        7b4d9f28-22a8-41d6-93ea-e4d8c2a75da8:
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), Opc.Ua.TraceEventArgs)
            ((16, 0), Opc.Ua.TraceEventArgs)
            ((7, 0), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), Opc.Ua.TraceEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
        c3c0e69e-bf8f-4bfa-8e93-816783737e55: 8
        8970fe52-aaa4-40f7-9a6e-74cdcee56724: static Session.Create
        OpcLabs.EasyOpc.UA.Implementation.ErrorEnhancingEasyUAClient.Processed: True
    Error Code: 1
    HelpLink: 
    HResult: -2146232832 (0x80131600)
    InnerException:
        OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
         --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Data:
            ErrorId: Opc.UA.ServiceResult=0x80130000
            OpcLabs.EasyOpc.UA.Implementation.ErrorEnhancingEasyUAClient.Processed: True
        Help Link: 
        HResult: -2146232832 (0x80131600)
        InnerException: 
        Internal Code: 2148728832
        Message:
            OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
             --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Service Result: BadSecurityChecksFailed
            Additional Info: 
            Description: Error establishing a connection.
            Inner Result: BadSecurityChecksFailed
                Additional Info:
                    >>> Error received from remote host: An error occurred verifying security.
                    ---    à Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
                    ---    à Opc.Ua.Bindings.TcpClientChannel.OnConnectOnDemandComplete(Object state)
                Description: Error received from remote host: An error occurred verifying security.
                Inner Result: 
                Message: Error received from remote host: An error occurred verifying security.
                Qualified Symbolic ID: 
                    Expanded Text: 
                    Is Null: True
                    Name: 
                    Namespace Index: 0
                    Namespace URI: 
                    Namespace URI String: 
                    Standard Name: 
                Status Code: BadSecurityChecksFailed
                    Code Bits: 32787
                    Code Bits Symbol: BadSecurityChecksFailed
                    Condition: 19
                    Description: An error occurred verifying security.
                    Flag Bits: 0
                    Has Data Value Info: False
                    Info Type: NotUsed
                    Internal Value: 2148728832
                    Is Bad: True
                    Is Good: False
                    Is Uncertain: False
                    Limit Info: None
                    Overflow: False
                    Semantics Changed: False
                    Severity: BadOrFailure
                    Status Info: Error
                    Structure Changed: False
                Text: {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
            Message: Error establishing a connection.
            Qualified Symbolic ID: 
                Expanded Text: 
                Is Null: True
                Name: 
                Namespace Index: 0
                Namespace URI: 
                Namespace URI String: 
                Standard Name: 
            Status Code: BadSecurityChecksFailed
                Code Bits: 32787
                Code Bits Symbol: BadSecurityChecksFailed
                Condition: 19
                Description: An error occurred verifying security.
                Flag Bits: 0
                Has Data Value Info: False
                Info Type: NotUsed
                Internal Value: 2148728832
                Is Bad: True
                Is Good: False
                Is Uncertain: False
                Limit Info: None
                Overflow: False
                Semantics Changed: False
                Severity: BadOrFailure
                Status Info: Error
                Structure Changed: False
            Text:
                {BadSecurityChecksFailed}. Error establishing a connection.
                 --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Service Target Site: T End(Int32)
            DeclaringType: Opc.Ua.Bindings.TcpAsyncOperation`1[T]
            Module: Opc.Ua.Core.dll
                Assembly: Opc.Ua.Core, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409
                CustomAttributes: 
                FullyQualifiedName: C:\Program Files (x86)\OPC Labs QuickOPC 2021.3\Assemblies\net47\Opc.Ua.Core.dll
                MDStreamVersion: 131072
                MetadataToken: 1
                ModuleHandle: System.ModuleHandle
                    MDStreamVersion: 131072
                ModuleVersionId: 04dc8823-5d09-4930-92e3-a733b055222c
                Name: Opc.Ua.Core.dll
                ScopeName: Opc.Ua.Core.dll
        Source: Opc.Ua.Core
        Stack Trace:
               à Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
               à Opc.Ua.Bindings.TcpClientChannel.EndSendRequest(IAsyncResult result)
               à Opc.Ua.SessionClient.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double requestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& revisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
               à OpcLabs.EasyOpc.UA.Sdk.Shims.SessionShim.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double millisecondsRequestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& millisecondsRevisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
               à Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain)
               à 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`1 setupTransportChannel)
               à OpcLabs.EasyOpc.UA.Toolkit.Client.UAClientSessionBase.<>c__DisplayClass144_0.<CreateSdkSession>b__2()
               à OpcLabs.EasyOpc.UA.Toolkit.UAEngineBase.PerformSdkAction(UASdkCallType callType, Func`1 usingFunction, String name, Action sdkAction)
        TargetSite: 
    Message:
        UA SDK error (Opc.UA.ServiceResult=0x80130000) in 'static Session.Create'. OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
        + Connection attempt #1; last connected at 01/01/0001 00:00:00 (local); unconnected for 00:00:00.
        + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
        + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
    Source: 
    Stack Trace:
        == Activity Trace ==
        Following (9) events were gathered during the action on activity ID [8], in the order of first occurrence:
          Exception: {Opc.Ua.ServiceResultException} Self Signed Certificate is not trusted. IssuerName: CN=KEPServerEX/UA Server, O=Unknown, C=FR, DC=DEV-W-TOKYO
          Exception: {System.IO.IOException} Descripteur non valide 
          SDK trace: CreateSession Called. RequestHandle=1, PendingRequestCount=1
          [16] SDK trace: Token #0 created. CreatedAt = 08:24:10.212 . Lifetime = 3600000
          [7] Exception: {Opc.Ua.ServiceResultException} Error received from remote host: An error occurred verifying security.
          3*Exception: {Opc.Ua.ServiceResultException} Error establishing a connection.
          SDK trace: CreateSession Completed. RequestHandle=1, PendingRequestCount=0, StatusCode=Bad
        Events starting with activity ID in [] may not necessarily be related to the current action.
 
    TargetSite: 
Message: Problem browsing OPC Unified Architecture nodes.
Source: 
StackTrace: 
TargetSite: 

and
Exceptions
 
Type: OpcLabs.EasyOpc.UA.UAServiceException
Data: 
HelpLink: 
HResult: -2146233088 (0x80131500)
InnerException:
    OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80130000) in 'static Session.Create'. OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
    + Connection attempt #1; last connected at 01/01/0001 00:00:00 (local); unconnected for 00:00:00.
    + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
    + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
     --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
       --- Fin de la trace de la pile d'exception interne ---
    Activity Trace:
        Following (9) events were gathered during the action on activity ID [8], in the order of first occurrence:
          Exception: {Opc.Ua.ServiceResultException} Self Signed Certificate is not trusted. IssuerName: CN=KEPServerEX/UA Server, O=Unknown, C=FR, DC=DEV-W-TOKYO
          Exception: {System.IO.IOException} Descripteur non valide 
          SDK trace: CreateSession Called. RequestHandle=1, PendingRequestCount=1
          [16] SDK trace: Token #0 created. CreatedAt = 08:24:10.212 . Lifetime = 3600000
          [7] Exception: {Opc.Ua.ServiceResultException} Error received from remote host: An error occurred verifying security.
          3*Exception: {Opc.Ua.ServiceResultException} Error establishing a connection.
          SDK trace: CreateSession Completed. RequestHandle=1, PendingRequestCount=0, StatusCode=Bad
        Events starting with activity ID in [] may not necessarily be related to the current action.
 
    Data:
        ErrorId: OpcLabs.UAEngine=1
        7b4d9f28-22a8-41d6-93ea-e4d8c2a75da8:
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), Opc.Ua.TraceEventArgs)
            ((16, 0), Opc.Ua.TraceEventArgs)
            ((7, 0), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), Opc.Ua.TraceEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
            ((8, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
        c3c0e69e-bf8f-4bfa-8e93-816783737e55: 8
        8970fe52-aaa4-40f7-9a6e-74cdcee56724: static Session.Create
        OpcLabs.EasyOpc.UA.Implementation.ErrorEnhancingEasyUAClient.Processed: True
    Error Code: 1
    HelpLink: 
    HResult: -2146232832 (0x80131600)
    InnerException:
        OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
         --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Data:
            ErrorId: Opc.UA.ServiceResult=0x80130000
            OpcLabs.EasyOpc.UA.Implementation.ErrorEnhancingEasyUAClient.Processed: True
        Help Link: 
        HResult: -2146232832 (0x80131600)
        InnerException: 
        Internal Code: 2148728832
        Message:
            OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
             --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Service Result: BadSecurityChecksFailed
            Additional Info: 
            Description: Error establishing a connection.
            Inner Result: BadSecurityChecksFailed
                Additional Info:
                    >>> Error received from remote host: An error occurred verifying security.
                    ---    à Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
                    ---    à Opc.Ua.Bindings.TcpClientChannel.OnConnectOnDemandComplete(Object state)
                Description: Error received from remote host: An error occurred verifying security.
                Inner Result: 
                Message: Error received from remote host: An error occurred verifying security.
                Qualified Symbolic ID: 
                    Expanded Text: 
                    Is Null: True
                    Name: 
                    Namespace Index: 0
                    Namespace URI: 
                    Namespace URI String: 
                    Standard Name: 
                Status Code: BadSecurityChecksFailed
                    Code Bits: 32787
                    Code Bits Symbol: BadSecurityChecksFailed
                    Condition: 19
                    Description: An error occurred verifying security.
                    Flag Bits: 0
                    Has Data Value Info: False
                    Info Type: NotUsed
                    Internal Value: 2148728832
                    Is Bad: True
                    Is Good: False
                    Is Uncertain: False
                    Limit Info: None
                    Overflow: False
                    Semantics Changed: False
                    Severity: BadOrFailure
                    Status Info: Error
                    Structure Changed: False
                Text: {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
            Message: Error establishing a connection.
            Qualified Symbolic ID: 
                Expanded Text: 
                Is Null: True
                Name: 
                Namespace Index: 0
                Namespace URI: 
                Namespace URI String: 
                Standard Name: 
            Status Code: BadSecurityChecksFailed
                Code Bits: 32787
                Code Bits Symbol: BadSecurityChecksFailed
                Condition: 19
                Description: An error occurred verifying security.
                Flag Bits: 0
                Has Data Value Info: False
                Info Type: NotUsed
                Internal Value: 2148728832
                Is Bad: True
                Is Good: False
                Is Uncertain: False
                Limit Info: None
                Overflow: False
                Semantics Changed: False
                Severity: BadOrFailure
                Status Info: Error
                Structure Changed: False
            Text:
                {BadSecurityChecksFailed}. Error establishing a connection.
                 --> {BadSecurityChecksFailed}. Error received from remote host: An error occurred verifying security.
        Service Target Site: T End(Int32)
            DeclaringType: Opc.Ua.Bindings.TcpAsyncOperation`1[T]
            Module: Opc.Ua.Core.dll
                Assembly: Opc.Ua.Core, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409
                CustomAttributes: 
                FullyQualifiedName: C:\Program Files (x86)\OPC Labs QuickOPC 2021.3\Assemblies\net47\Opc.Ua.Core.dll
                MDStreamVersion: 131072
                MetadataToken: 1
                ModuleHandle: System.ModuleHandle
                    MDStreamVersion: 131072
                ModuleVersionId: 04dc8823-5d09-4930-92e3-a733b055222c
                Name: Opc.Ua.Core.dll
                ScopeName: Opc.Ua.Core.dll
        Source: Opc.Ua.Core
        Stack Trace:
               à Opc.Ua.Bindings.TcpAsyncOperation`1.End(Int32 timeout)
               à Opc.Ua.Bindings.TcpClientChannel.EndSendRequest(IAsyncResult result)
               à Opc.Ua.SessionClient.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double requestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& revisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
               à OpcLabs.EasyOpc.UA.Sdk.Shims.SessionShim.CreateSession(RequestHeader requestHeader, ApplicationDescription clientDescription, String serverUri, String endpointUrl, String sessionName, Byte[] clientNonce, Byte[] clientCertificate, Double millisecondsRequestedSessionTimeout, UInt32 maxResponseMessageSize, NodeId& sessionId, NodeId& authenticationToken, Double& millisecondsRevisedSessionTimeout, Byte[]& serverNonce, Byte[]& serverCertificate, EndpointDescriptionCollection& serverEndpoints, SignedSoftwareCertificateCollection& serverSoftwareCertificates, SignatureData& serverSignature, UInt32& maxRequestMessageSize)
               à Opc.Ua.Client.Session.Open(String sessionName, UInt32 sessionTimeout, IUserIdentity identity, IList`1 preferredLocales, Boolean checkDomain)
               à 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`1 setupTransportChannel)
               à OpcLabs.EasyOpc.UA.Toolkit.Client.UAClientSessionBase.<>c__DisplayClass144_0.<CreateSdkSession>b__2()
               à OpcLabs.EasyOpc.UA.Toolkit.UAEngineBase.PerformSdkAction(UASdkCallType callType, Func`1 usingFunction, String name, Action sdkAction)
        TargetSite: 
    Message:
        UA SDK error (Opc.UA.ServiceResult=0x80130000) in 'static Session.Create'. OPC UA service result - {BadSecurityChecksFailed}. Error establishing a connection.
        + Connection attempt #1; last connected at 01/01/0001 00:00:00 (local); unconnected for 00:00:00.
        + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
        + The client method called (or event/callback invoked) was 'BrowseMultiple[1]'.
    Source: 
    Stack Trace:
        == Activity Trace ==
        Following (9) events were gathered during the action on activity ID [8], in the order of first occurrence:
          Exception: {Opc.Ua.ServiceResultException} Self Signed Certificate is not trusted. IssuerName: CN=KEPServerEX/UA Server, O=Unknown, C=FR, DC=DEV-W-TOKYO
          Exception: {System.IO.IOException} Descripteur non valide 
          SDK trace: CreateSession Called. RequestHandle=1, PendingRequestCount=1
          [16] SDK trace: Token #0 created. CreatedAt = 08:24:10.212 . Lifetime = 3600000
          [7] Exception: {Opc.Ua.ServiceResultException} Error received from remote host: An error occurred verifying security.
          3*Exception: {Opc.Ua.ServiceResultException} Error establishing a connection.
          SDK trace: CreateSession Completed. RequestHandle=1, PendingRequestCount=0, StatusCode=Bad
        Events starting with activity ID in [] may not necessarily be related to the current action.
 
    TargetSite: 
Message: Problem browsing OPC Unified Architecture nodes.
Source: 
StackTrace: 
TargetSite: 

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

Moderators: support
Time to create page: 0.183 seconds