Hi,
We have a OPC service, which is using your EasyOPC library for .NET Framework 4.5.2 (OPCLabs 5.53.405.1).
The software is being installed on multiple machines, however some times, it doesn't create the certificate.
I've tried many different approaches find the issues, different ways to try and connect but nothing helped. Neither getting the certificate created or getting a different error message.
The only ways I've made it work have been to start as administrator, close if fails and try again. Then sometimes it succeeds after quite a few tries.
The machines we are installing it on, are sometimes a machine with an older Windows installed, which has been upgraded to Win 10.
Have you experienced anything like this, that might point me towards what the issue could be, cause I've been struggling with locating the issue for a period of time without luck?
Every attempt has been as administrator.
Best regards
NAX
Error message:
Unhandled Exception: OpcLabs.EasyOpc.UA.OperationModel.UAException: An OPC-UA operation failure with error code -2147483648 (0x80000000) occurred, originating from 'System'. The inner OPC-UA service exception with service result 'Bad' contains details about the problem. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC-UA service result - Could not create a certificate via a proxy: The operation completed successfully = Bad.
---- SERVICE RESULT ----
StatusCode: {Bad} = 0x80000000 (2147483648)
+ The error occurred while checking the (client) application instance certificate. Check event log entries for errors and warnings. The certificate generator path was "C:\...\Opc.Ua.CertificateGenerator.exe".
+ This is an engine-level error. ---> System.ComponentModel.Win32Exception: The operation completed successfully
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at Opc.Ua.CertificateFactory.CreateCertificateViaProxy(String executablePath, String storePath, String password, String applicationUri, String applicationName, String subjectName, IList`1 domainNames, UInt16 keySize, DateTime startTime, UInt16 lifetimeInMonths, UInt16 hashSizeInBits, Boolean isCA, Boolean usePEMFormat, String issuerKeyFilePath, String issuerKeyFilePassword)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at OpcLabs.EasyOpc.UA.EasyUAClient.CheckSuccess(OperationResult operationResult)
at OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Read(IEasyUAClient client, UAReadArguments readArguments)
at OpcLabs.EasyOpc.UA.IEasyUAClientExtension.Read(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor)
at ... .NodeHasValue() in C:\...\OPCNode.cs:line 208
at ... .Main() in C:\...\Program.cs:line 26