Writing C # OPC capture program using OPCDAAuto.dll

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.