opcsample icon indicating copy to clipboard operation
opcsample copied to clipboard

System.Runtime.InteropServices.COMException

Open avnet78 opened this issue 3 years ago • 3 comments

I am following the code provided in the opcsample/Program.cs and I am getting the below exception. Should I register any of the com dll's using regsvr? Please advise.

System.Runtime.InteropServices.COMException: 'Retrieving the COM class factory for component with CLSID {28E68F9A-8D75-11D1-8DC3-3C302A000000} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).'

These are the dll's inside the bin folder:

image

avnet78 avatar Aug 08 '22 16:08 avnet78

@avnet78 have you fixed this error I have this error too

aevi1103 avatar Aug 09 '22 23:08 aevi1103

No, I tried but could not fix it and that’s when I created the issue.


From: Aevi @.> Sent: Tuesday, August 9, 2022 6:39:21 PM To: godsharp/opcsample @.> Cc: AVNet @.>; Mention @.> Subject: Re: [godsharp/opcsample] System.Runtime.InteropServices.COMException (Issue #4)

@avnet78https://github.com/avnet78 have you fixed this error I have this error too

— Reply to this email directly, view it on GitHubhttps://github.com/godsharp/opcsample/issues/4#issuecomment-1209996394, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APBE5DFIULE2IKT4VHXN5EDVYLT2TANCNFSM555WSIKA. You are receiving this because you were mentioned.Message ID: @.***>

avnet78 avatar Aug 09 '22 23:08 avnet78

@aevi1103 @avnet78 If you want to use OpcAutomation or Graybox, you should register dll, and this is only support x86. If you want to support x64, you should use OpcNetApi and install OPC Core Components. Opc Da Introduction

seayxu avatar Aug 24 '22 02:08 seayxu