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.

BadInvalidArgument

More
24 Oct 2018 04:01 #6793 by support
Replied by support on topic BadInvalidArgument
I am glad you found the reason :-)

Best regards

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

More
23 Oct 2018 18:50 #6792 by bkell1977
Replied by bkell1977 on topic BadInvalidArgument
Problem solved!

The inner exception give the following message:

Could not find binding type for scheme: 'ocp.tcp'.

This lead us to the error, a typo in the data provided by our customer the url was incorrect and should have been opc.tcp :pinch:

Once changed, everything worked correctly.

In any case, I would like to say thank you for your time and patience with this matter. Your support was excellent and very much appreciated :)

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

More
23 Oct 2018 06:41 #6781 by support
Replied by support on topic BadInvalidArgument
This can come from the server, but can also be a client-side problem - for example, with certificate store location. Please provide the inner exception detail as well.

Best regards

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

More
22 Oct 2018 17:31 #6780 by bkell1977
Replied by bkell1977 on topic BadInvalidArgument
Okay, the licence reads as valid.

After taking a try catch out of our code, the following error is generated:

An OPC-UA operation failure with error code -2136276992 (0x80AB0000) occurred, originating from ''. The inner OPC-UA service exception with service result 'BadInvalidArgument' contains details about the problem.

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

More
21 Oct 2018 17:45 #6777 by support
Replied by support on topic BadInvalidArgument
In that version, I think, it's "SerialNumber" instead of "Multipurpose.SerialNumber".
You can also enumerate all elements of the dictionary to obtain various pieces of license info.

Regards

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

More
21 Oct 2018 10:00 #6776 by bkell1977
Replied by bkell1977 on topic BadInvalidArgument
The file version of the .dlls is 5.41.1186.1

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

More
20 Oct 2018 14:40 #6775 by support
Replied by support on topic BadInvalidArgument
Which QuickOPC version are you using please?

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

More
20 Oct 2018 11:36 #6774 by bkell1977
Replied by bkell1977 on topic BadInvalidArgument
I tried your code to get the licence type but get the following message:

The given key was not present in the dictionary.

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

More
19 Oct 2018 15:10 #6768 by support
Replied by support on topic BadInvalidArgument
Hello.

You can use this:
// Shows how to obtain the serial number of the active license, and determine whether it is a demo or trial license.
 
using System;
using OpcLabs.EasyOpc.UA;
 
namespace UADocExamples._EasyUAClient
{
    class LicenseInfo
    {
        public static void SerialNumber()
        {
            // Instantiate the client object.
            var client = new EasyUAClient();
 
            // Obtain the serial number from the license info.
            long serialNumber = (uint)client.LicenseInfo["Multipurpose.SerialNumber"];
 
            // Display the serial number.
            Console.WriteLine("SerialNumber: {0}", serialNumber);
 
            // Determine whether we are running as demo or trial.
            if ((1111110000 <= serialNumber) && (serialNumber <= 1111119999))
                Console.WriteLine("This is a demo or trial license.");
            else
                Console.WriteLine("This is not a demo or trial license.");
        }
    }
}

(EasyDAClient or EasyAEClient can be used in place of EasyUAClient)

From your description, however, I am almost sure that the problem is not related to the license, because all our licensing error texts clearly identify the problem as being with the license.

What is the precise exception you are getting?

Best regards

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

More
19 Oct 2018 13:53 #6767 by bkell1977
BadInvalidArgument was created by bkell1977
Hello all,

We have created a service that uses the QucikOPC .dll files. We installed the service on the target server. Before running, we ran the licence manager software to register the QuickOPC licence on the server.

When the service is run, we get an error stating the OPC UA server we are trying to connect to cannot be reached.

We believe this is because the licence is not being properly registered on the server. When we installed the licence, the licence file was not deleted, which it was on installs on other servers.

Is there a way, outside of the licence manager, to check if the licence is correctly installed?

Thanks.

:sick:

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

Moderators: support
Time to create page: 0.064 seconds