私は.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).
私を助けてください。
前もって感謝します!