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.

Browse Exception when connecting remotely to the UA server

More
15 Jul 2021 15:15 #10002 by micham
Hi,
Thank you for your answer. We have created a new version based on the last Quick OPC version and sent it to the customer. I am looking for his answers.

Regards,
Michael

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

More
15 Jul 2021 14:18 #10001 by support
Hello.

I get mixed results here. On one hand, I have found that there definitely is a problem with the OPC Foundation's Certificate Generator, when non-ASCII characters appear in the file path for the "-f" option, which is what is used when QuickOPC attempts to generates the app certificate. And, the file path did contain a non-ASCII character, I can see that form the details of the error message you provided. I have verified that there is a problem with a similar path, and on my English Windows.

On the other hand, I have installed Polish Windows in a VM, and used QuickOPC demo apps there, and I could *not* reproduce the problem. The temp file pth, however, looks differently from yours, so maybe that can be related. I think it depends on the precise version and also edition of Windows, and maybe also on how it is set up (for example, retail vs. commercial vs. "Pro" editions etc.). Also, aren't they just an English Windows with some Polish language pack added? Please provide as much information you can about the Windows version&Edition&language packs etc., I would appreciate it.

At the same time, I have designed
a) a workaround that should make the certification generation work with non-ASCII characters in the temp path, and
b) improved the error details so that even if it fails, we get more information.

The changes above are contained in a new build of QuickOPC 2021.2, which is now available for download. It should report itself as 5.61.284.1 or later. Can you please download it, install, rebuild your app with it, and re-test? There is a high chance that it will work - and if not, please post here all the details of the error message again.

Best regards

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

More
14 Jul 2021 17:52 #9990 by micham
And yes, it is our only user with Polish Windows.
Thank you.
Michael

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

More
14 Jul 2021 16:42 #9989 by micham
Hi,

Thank you for your answer. Yes, this is a Polish Windows.

Best regards,

Michael

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

More
14 Jul 2021 16:14 - 15 Jul 2021 08:11 #9988 by support
This is Polish Windows, right? And, is it your only user with Polish Windows?

I did some tests with CertificateGenerator and non-ASCII characters in file path names - and there appears to be a problem in the CertificateGenerator (which is not our code - but we can find workarounds).

First I need to know the answers though.

Best regards
Last edit: 15 Jul 2021 08:11 by support.

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

More
14 Jul 2021 14:29 #9986 by micham
Hi,

There is no C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe file....
I searched for this file on the computer and found it in other folders. See the attached screen capture.
Note: Our product installs the OPC Foundation OPC UA Local Discovery Server module and OPC Foundation Core Components..

Any idea why we are getting this error when we try browsing?

"OpcLabs.EasyOpc.UA.Engine.UAEngineException: UA SDK error (Opc.UA.ServiceResult=0x80000000) in 'ApplicationInstance.CheckApplicationInstanceCertificate'. OPC UA service result - {Bad}"

Thank you.

Michael
Attachments:

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

More
09 Jul 2021 08:29 #9968 by support
This error has nothing to do with the actual connection to the target server. It has to do with the client side. The client won't be able to connect any UA server in this case.

Is there a C:\Program Files (x86)\Control-See\EBO-OPC Client\BIN\Opc.Ua.CertificateGenerator.exe file? Mind you, for proper operation, it should *not* be there.

Regards

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

More
09 Jul 2021 08:00 #9967 by micham
Hi,
We are able to connect to the KepServerEX locally. When we try to connect remotely to the same OPC UA server we get this error. Any idea why we are able to connect locally but not remotely?
Can you connect to the customer computer together with me and help us resolve this issue?

Thank you.
Michael

Exceptions

Type: OpcLabs.BaseLib.Browsing.BrowseException
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\tmp19E2.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\tmp19E2.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.129 seconds