我是一名.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,但我仍然遇到相同的问题。请注意,我只能从“项目属性”中的“生成”选项卡顶部看到“Active (Any 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).
请帮助我。
提前致谢!