System.Runtime.InteropServices.COMException(0x80040154): [英] System.Runtime.InteropServices.COMException (0x80040154):

查看:218
本文介绍了System.Runtime.InteropServices.COMException(0x80040154):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


System.Runtime.InteropServices.COMException(0x80040154):检索COM由于出现以下错误,CLSID {877AA945-1CB2-411C-ACD7-C70B1F9E2E32}的组件类工厂出现故障:80040154。


什么这是否意味着?

解决方案

这意味着类ID 877AA945-1CB2-411C-ACD7-C70B1F9E2E32不在注册表中。 / p>

您可以打开regedit.exe,浏览到 HKEY_CLASSES_ROOT\CLSID\ {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} / code>。如果您在64位操作系统上运行32位应用程序,请查找 HKEY_CLASSES_ROOT\Wow6432Node\CLSID\ {877AA945-1CB2-411C-ACD7-C70B1F9E2E32} / p>

如果它在那里,它可能是一些其他问题,但它可能是丢失。要解决这个问题,你通常会运行分发这个COM对象的安装程序。如果你没有,你知道什么dll实现对象,你可以运行regsvr32.exe(或regasm.exe为托管dll)。


I'm getting an exception in a c# project:

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.

What could it mean?

解决方案

It means the class id 877AA945-1CB2-411C-ACD7-C70B1F9E2E32 is not in the registry.

You can verify this by opening regedit.exe, browsing to HKEY_CLASSES_ROOT\CLSID\{877AA945-1CB2-411C-ACD7-C70B1F9E2E32}. If your running a 32-bit app on a 64 bit OS, look for HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{877AA945-1CB2-411C-ACD7-C70B1F9E2E32}

If it is there, it may be some other issue but it is probably missing. To resolve this you will usually run the installer that distributes this COM object. If you don't have one and you know what dll implements the object, you can run regsvr32.exe (or regasm.exe for a managed dll).

这篇关于System.Runtime.InteropServices.COMException(0x80040154):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆