背景:
OPCDAAuto.dll 用在C# IIS WebAPI中
错误信息
加载本地OPC服务列表出现异常信息:Retrieving the COM class factory for component with CLSID {28E68F9A-8D75-11D1-8DC3-3C302A000000} failed due to the following error: 8007007e 找不到指定的模块。 (0x8007007E).
异常位置: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
at HESS.Communication.OPCHelper.GetOPCServerList() in Xxxxxxxx路径
异常级别:System.IO.FileNotFoundException
解决方法
在该路径下组成插件
C:\Windows\SysWOW64