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.

Error "An OPC-UA operation failure with error code -2147483648 ..." in VM

More
07 Mar 2022 10:29 #10705 by support
In addition, there appears to be some problem with the certificate that has already been generated - I suggest you clear all certificates related to your app from the stores.

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

More
07 Mar 2022 10:26 #10704 by support
Hello.

The relevant message in the log is:
Exception: {System.UnauthorizedAccessException} Access to the path 'C:\ProgramData\OPC Foundation\CertificateStores\RejectedCertificates\private\OPC2SQL [FC6D42C5C14333F373945E42AD47014723164AEB].pfx' is denied.
So, you need to make sure that permissions exist (for the user that is running the app) to access the listed path.

Best regards

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

More
07 Mar 2022 10:17 #10703 by v.parma

File Attachment:

File Name: 20220307_2...3-07.txt
File Size:584 KB
Attachments:

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

More
07 Mar 2022 10:13 #10702 by v.parma
Hi,
ok, I try to use recent version 2021.3.
See attached log.
Attachments:

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

More
06 Mar 2022 11:05 #10701 by support
Hello,

unfortunately, since you are using version 5.54, and there were changes in newer versions in this area, plus an improved diagnostics, I cannot help you further.

Recommended action is to rebuild and test with current version, and if that works, version upgrade. If it does not work, it should at least give better diagnostics.

Best regards

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

More
04 Mar 2022 16:54 #10698 by v.parma
Hi,
I tryed with and without admin privilege, but the error is the same. I tryed also to move the folder with exe file and dlls from C:\... to Desktop, but doesn't communicate.
The log is the same with and without admin privilege.

I tryed also with EasyOpcUADemo of OPC Labs and this program on this VM working fine.

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

More
04 Mar 2022 16:26 #10695 by support
Hello,
thank you.

Have you tried the first suggestion (running with elevated privileges), and what were the results. Or, is the log file actually from that run?

Best regards

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

More
04 Mar 2022 15:56 #10694 by v.parma
Attachments:

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

More
04 Mar 2022 09:30 #10693 by support
Hello,
thank you, this is very good, that's what I needed - at least for start.

The error tells us that there is some problem creating (auto-generating) the OPC UA application instance certificate for the client (your application). This happens before an OPC UA connection is even established.

1) Try to run the application with elevated privileges ("Run as Administrator") once.
2) if that does not help: Please add an event handler to the static EasyUAClient.LogEntry event, and capture all log messages generated during the (failed) start of your application.

Best regards

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

More
03 Mar 2022 14:28 #10689 by v.parma
This?

Message: 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.(1) {OpcLabs.EasyOpc.UA.OperationModel.UAException} OpcLabs.EasyOpcUA(CheckSuccess) -> 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.
(2) {OpcLabs.EasyOpc.UA.UAServiceException} -> OPC-UA service result - Could not create a certificate via a proxy: The operation completed successfully = Bad. ---- SERVICE RESULT ---- Status Code: {Bad} = 0x80000000 (2147483648) + The SDK action called was "ApplicationInstance.CheckApplicationInstanceCertificate". + Following (4) events were gathered during the action on activity ID [3], in the order of first occurrence: SDK trace: Checking application instance certificate. SDK trace: Creating application instance certificate. KeySize=0, Lifetime=600 SDK trace: Deleting application instance certificate. Exception: {System.ComponentModel.Win32Exception} The operation completed successfully + The error occurred while creating or checking the (client) application instance certificate. Check event log entries for errors and warnings. + The certificate generator path was "C:\OPC2SQL_FPS1171\Opc.Ua.CertificateGenerator.exe". + This is an engine-level error. + The client method called was 'ReadMultiple'.
(3) {System.ComponentModel.Win32Exception} System(StartWithCreateProcess) -> The operation completed successfully

StackTrace: at OpcLabs.EasyOpc.UA.EasyUAClient.CheckSuccess(OperationResult operationResult)
at OpcLabs.EasyOpc.UA.IEasyUAClientExtension.ReadValue(IEasyUAClient client, UAReadArguments readArguments)
at OpcLabs.EasyOpc.UA.IEasyUAClientExtension.ReadValue(IEasyUAClient client, UAEndpointDescriptor endpointDescriptor, UANodeDescriptor nodeDescriptor)
at OPC2SQL.frMain.PollingStatus()
Date/Time: 3/3/2022 11:20:46 AM

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

Moderators: support
Time to create page: 0.060 seconds