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

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

问题描述

我得到在C#项目中的异常:

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.

什么,这可能意味着?

推荐答案

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

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

您可以通过打开REGEDIT.EXE,浏览到 HKEY_CLASSES_ROOT\CLSID\验证这一点{877AA945-1CB2 -411C-ACD7-C70B1F9E2E32} 。如果您运行在64位操作系统的32位应用程序,查找 HKEY_CLASSES_ROOT\Wow6432Node\CLSID\ {877AA945-1CB2-411C-ACD7-C70B1F9E2E32}

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}

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

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天全站免登陆