Yesterday, I installed the QuickOPC 2020.3 and started paying with C# example projects. While the .NET examples from the solution
QuickOpcCSharpExamples worked fine, I the example project
MultiTargetDocExamples.csproj of the
QuickOpcCSharpMultiTargetExamples generated "Class not registered" exception after it was executed.
Here is the complete exception text:
{OpcLabs.EasyOpc.Engine.NetApiException: An exception with error ID 'OpcLabs.EasyOpc.Engine.NetApiException' occurred during processing in a NET API OPC Data Access client. The inner exception contains details about the problem.
+ The client method called was 'ReadMultipleItems'. ---> OpcLabs.EasyOpc.Engine.NetApiException: An exception with error ID 'ErrorCode=0x80004005' occurred during processing in a NET API OPC Data Access client. The inner exception contains details about the problem. ---> System.Runtime.InteropServices.ExternalException: CoCreateInstanceEx: Class not registered
at Opc.Server.Connect(URL url, ConnectData connectData)
at Opc.Da.Server.Connect(URL url, ConnectData connectData)
at OpcLabs.EasyOpc.Implementation.NetApi.DataAccess.NetApiOpcDaServer.ServerConnect(Server server, ConnectData connectData, Exception& exception)
--- End of inner exception stack trace ---
at OpcLabs.EasyOpc.Implementation.NetApi.DataAccess.NetApiOpcDaServer.ConnectToServer(WebProxy proxy, Server server, NetworkCredential credentials, String connectionGroupName, EasyDAAdaptableParameters adaptableParameters)
at OpcLabs.EasyOpc.Implementation.NetApi.DataAccess.NetApiOpcDaServer.Connect(Boolean doOnlyIfGoodStatus, Boolean callGetStatus, Exception& exception)
--- End of inner exception stack trace ---}
I have also checked the Registry for CLSID {C8A12F17-1E03-401E-B53D-6C654DD576DA}, it looks as followed
HKEY_CLASSES_ROOT\OPCLabs.KitServer\CLSID
HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{C8A12F17-1E03-401E-B53D-6C654DD576DA}
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\OPCLabs.KitServer
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{C8A12F17-1E03-401E-B53D-6C654DD576DA}
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{C8A12F17-1E03-401E-B53D-6C654DD576DA}
Please advice me how to resolve the issue with .NET Core because I am going to develop in .NET Core and not .NET classic framework.