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.

Building with .Net 4.6.2 and x64 causes InvalidOperationException

More
04 Feb 2017 11:04 #4922 by support
Thank you. Our setup was quite similar, in fact.

I have further tried to reproduce the issue, but without success. I think it may actually be not *directly* related to the .NET Framework version or the target CPU, but rather to things like timing/threads, which are not deterministic and can be different on our computers, even if the software versions are identical.

At this point, unfortunately, I am unable to provide further help, until reproduced on our side.

Do you actually necessarily need to do that? That is, do you really need to build for x64?

Best regards
The following user(s) said Thank You: Erik

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

More
02 Feb 2017 08:13 - 02 Feb 2017 08:13 #4910 by Erik
On my dev PC:
1. Windows 7 Professional x64 English
2.


On my target PC:
1. Windows 10 Enterprise 2015 LTSB x64 English
2.

Best regards
Attachments:
Last edit: 02 Feb 2017 08:13 by Erik.

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

More
02 Feb 2017 07:42 #4909 by support
QuickOPC 2016.2 has not been exhaustively tested under .NET Framework 4.6.2, but in general we expect it work.

I have attempted to reproduce the problem, but was so far unsuccessful.
I have tested on Windows 10 Enterprise 2015 LTSB (x64, English). Same version and build of QuickOPC as in your test.

Questions:

1. Which operating system have you used?
2. Besides .NET Framework 4.6.2, were there other versions of the framework installed at the same time?

Thank you

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

More
01 Feb 2017 13:55 #4908 by Erik
Hello,

Using .Net4.6.2 and setting release to x64 causes the following crash:

An unhandled exception of type 'System.InvalidOperationException' occurred in OpcLabs.EasyOpcUA.dll

Additional information: Precondition failed: SdkCertificateValidationEventHandler == null


Additional info:
  • Tested with both "QuickOPC 5.40 Build 461.1" and "QuickOPC 2016.2 (5.41.524.1) Full".
  • Using .Net 4.6.2 and setting release to mixed works without problems.
  • Using .Net 4.5.2 and setting release to x64 works without problems.

Program used:
using System;
using OpcLabs.EasyOpc.UA;
 
namespace ConsoleApplication1
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            var uaClient = new EasyUAClient();
            var endpoint = new UAEndpointDescriptor(IPAdress);
            var node = new UANodeDescriptor(NodeAddress);
            UAAttributeData result = uaClient.Read(endpoint, node);
            Console.WriteLine(result.Value);
 
            Console.ReadKey();
        }
    }
}

Is .net4.6.2 not yet fully supported or did I run into an unfortunate bug?

Best regards,

Erik

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

Moderators: support
Time to create page: 0.065 seconds