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.

OpcLabs.EasyOpc.UA.Engine.UAEngineException - OPC UA service result - {Bad}

More
08 Jul 2021 17:41 #9964 by micham
Hi,

Our customer is having a problem when trying to browse the KepServerEX via OPC UA connectivity. See the log below. Can you please explain this error and what may cause this error?

Thank you.

Michael

Exceptions

Type: OpcLabs.EasyOpc.UA.Engine.UAEngineException
Data:
HelpLink:
HResult: -2146233088 (0x80131500)
InnerException:
OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80000000) in 'ApplicationInstance.CheckApplicationInstanceCertificate'. OPC UA service result - {Bad}
+ 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:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe".
+ This is an engine-level error.
+ The client method called (or event/callback invoked) was 'BrowseMultiple'. ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {Bad} ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {Bad}
--- Koniec śladu stosu wyjątków wewnętrznych ---
--- Koniec śladu stosu wyjątków wewnętrznych ---
Activity Trace:
Following (18) events were gathered during the action on activity ID [19], 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.
SDK trace: CreateCertificateViaProxy("C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe", "C:\ProgramData\OPC Foundation\CertificateStores\MachineDefault", "", "urn:DESKTOP-UQS96VB:EBOOPCClientCFG:1.0.78.0:neutral:null", "EBO-OPC Client Configuration", "", {"DESKTOP-UQS96VB"}, 0, "01/01/0001 00:00:00", 600, 256, False, False, "", "")
SDK trace: filePath: C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe
SDK trace: storePath: C:\ProgramData\OPC Foundation\CertificateStores\MachineDefault
SDK trace: applicationUri: urn:DESKTOP-UQS96VB:EBOOPCClientCFG:1.0.78.0:neutral:null
SDK trace: applicationName: EBO-OPC Client Configuration
2*SDK trace: subjectName: CN=EBO-OPC Client Configuration/DC=DESKTOP-UQS96VB
SDK trace: domainNames: DESKTOP-UQS96VB
SDK trace: keySize: 2048
SDK trace: lifetimeInMonths: 600
SDK trace: tempFile: C:\Users\Użytkownik\AppData\Local\Temp\tmp12EE.tmp
SDK trace: result: -cmd issue
Exception: {Opc.Ua.ServiceResultException} Input file was not processed properly.
SDK trace: e: Opc.Ua.ServiceResultException: Input file was not processed properly. w 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)
Exception: {Opc.Ua.ServiceResultException} Could not create a certificate via a proxy: Input file was not processed properly.

Data:
ErrorId: OpcLabs.UAEngine=1
7b4d9f28-22a8-41d6-93ea-e4d8c2a75da8:
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
((19, 1), Opc.Ua.TraceEventArgs)
((19, 1), System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs)
c3c0e69e-bf8f-4bfa-8e93-816783737e55: 19
OpcLabs.EasyOpc.UA.Implementation.ErrorEnhancingEasyUAClient.Processed: True
Error Code: 1
HelpLink:
HResult: -2146232832 (0x80131600)
InnerException:
OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {Bad} ---> OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {Bad}
--- Koniec śladu stosu wyjątków wewnętrznych ---
Data: ErrorId: Opc.UA.ServiceResult=0x80000000
Help Link:
HResult: -2146232832 (0x80131600)
InnerException: OpcLabs.EasyOpc.UA.UAServiceException: OPC UA service result - {Bad}
Data: ErrorId: Opc.UA.ServiceResult=0x80000000
Help Link:
HResult: -2146232832 (0x80131600)
InnerException:
Internal Code: 2147483648
Message: OPC UA service result - {Bad}
Service Result: Bad
Additional Info:
Description:
Inner Result:
Qualified Symbolic ID:
Expanded Text:
Is Null: True
Name:
Namespace Index: 0
Namespace URI:
Namespace URI String:
Standard Name:
Status Code: Bad
Code Bits: 32768
Code Bits Symbol: Bad
Condition: 0
Flag Bits: 0
Has Data Value Info: False
Info Type: NotUsed
Internal Value: 2147483648
Is Bad: True
Is Good: False
Is Uncertain: False
Limit Info: None
Overflow: False
Semantics Changed: False
Severity: BadOrFailure
Status Info: Error
Structure Changed: False
Text: {Bad}
Service Target Site: System.Security.Cryptography.X509Certificates.X509Certificate2 CreateCertificateViaProxy(System.String, System.String, System.String, System.String, System.String, System.String, System.Collections.Generic.IList`1[System.String], UInt16, System.DateTime, UInt16, UInt16, Boolean, Boolean, System.String, System.String)
DeclaringType: Opc.Ua.CertificateFactory
Module: Opc.Ua.Core.dll
Assembly: Opc.Ua.Core, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409
CustomAttributes:
FullyQualifiedName: C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.Core.dll
MDStreamVersion: 131072
MetadataToken: 1
ModuleHandle: System.ModuleHandle
MDStreamVersion: 131072
ModuleVersionId: cc819e15-c1f0-4cd1-a4cc-c7b59fd7b4d5
Name: Opc.Ua.Core.dll
ScopeName: Opc.Ua.Core.dll
Source: Opc.Ua.Core
Stack Trace: w 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)
TargetSite:
Internal Code: 2147483648
Message: OPC UA service result - {Bad}
Service Result: Bad
Additional Info:
Description:
Inner Result:
Qualified Symbolic ID:
Expanded Text:
Is Null: True
Name:
Namespace Index: 0
Namespace URI:
Namespace URI String:
Standard Name:
Status Code: Bad
Code Bits: 32768
Code Bits Symbol: Bad
Condition: 0
Flag Bits: 0
Has Data Value Info: False
Info Type: NotUsed
Internal Value: 2147483648
Is Bad: True
Is Good: False
Is Uncertain: False
Limit Info: None
Overflow: False
Semantics Changed: False
Severity: BadOrFailure
Status Info: Error
Structure Changed: False
Text: {Bad}
Service Target Site: System.Security.Cryptography.X509Certificates.X509Certificate2 CreateCertificateViaProxy(System.String, System.String, System.String, System.String, System.String, System.String, System.Collections.Generic.IList`1[System.String], UInt16, System.DateTime, UInt16, UInt16, Boolean, Boolean, System.String, System.String)
DeclaringType: Opc.Ua.CertificateFactory
Module: Opc.Ua.Core.dll
Assembly: Opc.Ua.Core, Version=1.3.342.0, Culture=neutral, PublicKeyToken=6faddca41dacb409
CustomAttributes:
FullyQualifiedName: C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.Core.dll
MDStreamVersion: 131072
MetadataToken: 1
ModuleHandle: System.ModuleHandle
MDStreamVersion: 131072
ModuleVersionId: cc819e15-c1f0-4cd1-a4cc-c7b59fd7b4d5
Name: Opc.Ua.Core.dll
ScopeName: Opc.Ua.Core.dll
Source: Opc.Ua.Core
Stack Trace:
w 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)
w Opc.Ua.CertificateFactory.CreateCertificate(String storeType, 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, UInt16 algorithm)
w Opc.Ua.CertificateFactory.CreateCertificate(String storeType, String storePath, String applicationUri, String applicationName, String subjectName, IList`1 domainNames, UInt16 keySize, UInt16 lifetimeInMonths)
w Opc.Ua.Configuration.ApplicationInstance.CreateApplicationInstanceCertificate(ApplicationConfiguration configuration, UInt16 keySize, UInt16 lifetimeInMonths)
w Opc.Ua.Configuration.ApplicationInstance.CheckApplicationInstanceCertificate(Boolean silent, UInt16 minimumKeySize)
w OpcLabs.EasyOpc.UA.Toolkit.ClientServer.UAClientEngineBase.<>c__DisplayClass30_0.<ValidateOrCreateClientCertificate>b__2()
w OpcLabs.EasyOpc.UA.Toolkit.UAEngineBase.PerformSdkAction(UASdkCallType callType, Func`1 usingFunction, String name, Action sdkAction)
TargetSite:
Message:
UA SDK error (Opc.UA.ServiceResult=0x80000000) in 'ApplicationInstance.CheckApplicationInstanceCertificate'. OPC UA service result - {Bad}
+ 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:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe".
+ This is an engine-level error.
+ The client method called (or event/callback invoked) was 'BrowseMultiple'.
Source:
Stack Trace:
== Activity Trace ==
Following (18) events were gathered during the action on activity ID [19], 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.
SDK trace: CreateCertificateViaProxy("C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe", "C:\ProgramData\OPC Foundation\CertificateStores\MachineDefault", "", "urn:DESKTOP-UQS96VB:EBOOPCClientCFG:1.0.78.0:neutral:null", "EBO-OPC Client Configuration", "", {"DESKTOP-UQS96VB"}, 0, "01/01/0001 00:00:00", 600, 256, False, False, "", "")
SDK trace: filePath: C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe
SDK trace: storePath: C:\ProgramData\OPC Foundation\CertificateStores\MachineDefault
SDK trace: applicationUri: urn:DESKTOP-UQS96VB:EBOOPCClientCFG:1.0.78.0:neutral:null
SDK trace: applicationName: EBO-OPC Client Configuration
2*SDK trace: subjectName: CN=EBO-OPC Client Configuration/DC=DESKTOP-UQS96VB
SDK trace: domainNames: DESKTOP-UQS96VB
SDK trace: keySize: 2048
SDK trace: lifetimeInMonths: 600
SDK trace: tempFile: C:\Users\Użytkownik\AppData\Local\Temp\tmp12EE.tmp
SDK trace: result: -cmd issue
Exception: {Opc.Ua.ServiceResultException} Input file was not processed properly.
SDK trace: e: Opc.Ua.ServiceResultException: Input file was not processed properly. w 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)
Exception: {Opc.Ua.ServiceResultException} Could not create a certificate via a proxy: Input file was not processed properly.

TargetSite:
Message: Problem browsing OPC Unified Architecture nodes.
Source:
StackTrace:
TargetSite:

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

Moderators: support
Time to create page: 0.098 seconds