<分区>
我在 C# 项目中遇到异常:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} failed due to the following error: 80040154.
这意味着什么?
<分区>
我在 C# 项目中遇到异常:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} failed due to the following error: 80040154.
这意味着什么?
最佳答案
这意味着类别 ID 877AA945-1CB2-411C-ACD7-C70B1F9E2E32 不在注册表中。
您可以通过打开 regedit.exe,浏览到 HKEY_CLASSES_ROOT\CLSID\{877AA945-1CB2-411C-ACD7-C70B1F9E2E32}
来验证这一点。如果您在 64 位操作系统上运行 32 位应用程序,请查找 HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{877AA945-1CB2-411C-ACD7-C70B1F9E2E32}
如果它存在,则可能是其他问题,但它可能丢失了。要解决此问题,您通常会运行分发此 COM 对象的安装程序。如果您没有并且知道实现该对象的 dll,您可以运行 regsvr32.exe(或托管 dll 的 regasm.exe)。
关于c# - System.Runtime.InteropServices.COMException (0x80040154) :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4663994/