我是 .Net 开发人员。OPC 新手。当我尝试一些 OPC 客户端示例时,它们都给出了这个错误。看来 DLL 似乎没有注册。但我不知道如何以及在哪里注册。
error: retrieving the COM class factory for component with CLSID failed due to the following error: 80040154
即使我试过这个
regsvr32 Interop.OPCAutomation.dll",
但它也会引发错误
The module "Interop.OPCAutomation.dll" was loaded but the entry-point DllRegisterServeer was not found.
Make sure that "Interop.OPCAutomation.dll" is a valid DLL or OCX file and then try again.
我浏览了很多现有的论坛。他们中的许多人说要将平台目标更改为 x86,但我仍然遇到同样的问题。仅供参考,我只能在项目属性的“构建”选项卡顶部的“平台”选项中看到“活动(任何 CPU)”。
这是我的环境详细信息:
.Net 2005
OPCAutomation Weapper
Windows 7 64-bit OS
Dell Inspiron 1525 (I hope this is not a 64bit machine, but my engineer installed 64bit OS somehow).
请帮我。
提前致谢!