A C # program written using the OPC Automation interface is running on a new machine with the following error:
The component for the CLSID {28e68f9a-8d75-11d1-8dc3-3c302a000000} in the cable COM class factory failed because of the following error: 80040154 no registered Class (Exception from hresult:0x80040154 (REGDB _e_classnotreg)).
Running successfully on my notebook, the registry search is as follows:
The following is the interface. NET Source:
namespace opcautomation{ using System.Runtime.InteropServices; [ComImport, Guid ("28e68f92-8d75-11d1-8dc3-3c302a000000"), CoClass (typeof (Opcserverclass))] publicinterface Opcserver:iopcautoserver, Diopcserverevent_event { }}
Copy out OPCDAAuto.dll to register and run successfully.
File Download: OPCDAAuto.dll
After a. NET program reference
Writing C # OPC capture program using OPCDAAuto.dll