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.

connection failure in dot net core error : 0x808A0000

More
31 May 2021 14:49 #9715 by support
Thank you for update.

I am glad that it works now.

Best regards

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

More
31 May 2021 14:45 #9714 by aksenthil
Dear Team,

You are right.

When I am trying from ubuntu, it accepts the IP address instead of the computer name.

IP Address is supporting in both windows and Linux without any issues.

Please find below the code modification.

UAEndpointDescriptor endpointDescriptor =
((UAEndpointDescriptor)"opc.tcp://192.168.0.104:49320")
.WithUserNameIdentity("Administrator", "Password");

Thanks for your support

with regards,
senthil
The following user(s) said Thank You: support

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

More
31 May 2021 14:08 #9713 by support
So, you either need to fix the name resolution (e.g. by adding an entry to the 'hosts' file) on the Ubuntu, or you need to use the numerical IP address instead of the host name, in the endpoint URL of the server (but in that case please make sure that the Kepserver is also configured to return THAT numerical IP address in its endpoints).

None of that is directly related to QuickOPC.

Best regards

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

More
31 May 2021 13:59 #9712 by aksenthil
Dear Team,

Thanks for the quick response

I pinged the kepware windows machine from the ubuntu machine. When I am using the desktop name, it's not pining. But if I am using an IP address, it pinged. Please find the screenshot.



with regards,
senthil
Attachments:

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

More
31 May 2021 13:49 #9711 by support
Hello,
thank you for the details.

I wonder if host name resolution works fine (Linux won't automatically see Windows computer names! ) and whether the port can be reached.

For start, if you execute "ping desktop1234", what output does it give you?

Thank you

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

More
31 May 2021 13:28 - 31 May 2021 13:41 #9710 by aksenthil
Dear Team,

please find below comments

1. Please confirm that the same sample works in its original state - i.e., when connecting to our public demo server.

The source code at its original state is working fine in ubuntu. please find below a screenshot



2. Please post here the code modification you made to connect it to the Kepware server

source code:

the below code is working fine in the windows platform. When I am trying to debug from windows, it looks great.

using System;
using System.Threading;
using OpcLabs.BaseLib.OperationModel;
using OpcLabs.EasyOpc.UA;
using OpcLabs.EasyOpc.UA.Extensions;
using OpcLabs.EasyOpc.UA.OperationModel;
 
namespace UADocExamples._EasyUAClient
{
    partial class ReadMultipleValues
    {
 
        public static void Main1()
        {
            UAEndpointDescriptor endpointDescriptor =
              ((UAEndpointDescriptor)"opc.tcp://desktop1234:49320")
              .WithUserNameIdentity("Administrator", "Password");
 
            //UAEndpointDescriptor endpointDescriptor =
            //    "opc.tcp://opcua.demo-this.com:51210/UA/SampleServer";
            //// or "http://opcua.demo-this.com:51211/UA/SampleServer" (not in .NET Standard)
            //// or "https://opcua.demo-this.com:51212/UA/SampleServer/"
 
            // Instantiate the client object
            var client = new EasyUAClient();
 
            // Obtain values. By default, the value attributes of the nodes will be read.
            ValueResult[] valueResultArray = client.ReadMultipleValues(new[]
                {
                    new UAReadArguments(endpointDescriptor, "ns=2;s=Channel1.Device1.Tag1"),
                    new UAReadArguments(endpointDescriptor, "ns=2;s=Channel1.Device1.Tag2")
                    //new UAReadArguments(endpointDescriptor, "nsu=http://test.org/UA/Data/;i=10853"),
                    //new UAReadArguments(endpointDescriptor, "nsu=http://test.org/UA/Data/;i=10855")
                });
 
            // Display results
            foreach (ValueResult valueResult in valueResultArray)
            {
                if (valueResult.Succeeded)
                    Console.WriteLine("Value: {0}", valueResult.Value);
                else
                    // Console.WriteLine("*** Failure: {0}", valueResult.ErrorMessageBrief);
                   Console.WriteLine("*** Failure: {0}", valueResult.ErrorMessage); //Modified code for action item 3.as you mentioned in the below reply
            }
     }
  }
}
When I am executing the above code from the windows platform in debugging mode, the code working fine as expected. Please find the below screenshot.



the same out file, when I am ported to ubuntu and executing, it is not connecting to kepware OPC Server



please kindly help me to resolve the issue

with regards,
senthil
Attachments:
Last edit: 31 May 2021 13:41 by support.

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

More
30 May 2021 15:46 #9707 by support
Hello,
I have some question.

1. Please confirm that the same sample works in its original state - i.e when connecting to our public demo server.

2. Please post here the code modification you made to connect it to the Kepware server.

3. Please modify the error handling part in the example so that it prints out more detailed error message, re-run, and post here the full error message it will give. The error handling change is as follows: Replace
Console.WriteLine("*** Failure: {0}", valueResult.ErrorMessageBrief);
by
Console.WriteLine("*** Failure: {0}", valueResult.ErrorMessage);

Thank you, and best regards

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

More
29 May 2021 18:44 #9706 by aksenthil
Dear Team,

I was trying to access OPC UA Server ( Kepware server) in windows machine.

My Quick OPC OPC UA client is running in ubuntu 20.04.2 LTS

I am using the dot net core sample application from Quick OPC.

while publishing, I mentioned as Linux x64 and self-contained application

while executing the code I am getting the error code 0x808A0000. please kindly guide me to resolve the issue

please find attached error code image.
Attachments:

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

Moderators: support
Time to create page: 0.062 seconds