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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Installation, Deployment
- Error "An OPC-UA operation failure with error code -2147483648 ..." in VM
Error "An OPC-UA operation failure with error code -2147483648 ..." in VM
Please Log in or Create an account to join the conversation.
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.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
ok, I try to use recent version 2021.3.
See attached log.
Attachments:
Please Log in or Create an account to join the conversation.
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.
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.
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.
see attacherd log file.
Please Log in or Create an account to join the conversation.
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.
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.
- Forum
- Discussions
- QuickOPC-UA in .NET
- Installation, Deployment
- Error "An OPC-UA operation failure with error code -2147483648 ..." in VM