c# - 如何解决 COM Exception Class not registered (Exception from HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG))?

标签 c# vb.net

当我尝试创建 COM 类的实例时,它抛出一个异常

类未注册(HRESULT 异常:0x80040154 (REGDB_E_CLASSNOTREG))

请建议我该如何解决?

最佳答案

您需要确保所有程序集都针对正确的体系结构进行编译。如果重新安装 COM 组件不起作用,请尝试更改 x86 的体系结构。

关于c# - 如何解决 COM Exception Class not registered (Exception from HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG))?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1496214/

相关文章:

c# - 拆分字符串时出错

c# - 当文件夹名称的文件已经存在时,如何创建一个空文件夹?

.net - Datagridview 中的方形填充复选框

.net - 从 .NET 逆向工程 Access 宏

vb.net - 多色 RichTextBox

c# - 从数据库 :The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' 访问数据的 MVC 问题

c# - WPF 组合框不更新 ViewModel

vb.net - 具有对象数据源的Visual Studio 2010本地SSRS报告(.rdlc)

.net - 访问 Web 服务时出现 HTTP 403 错误

c# - k__BackingField 在 C# 中删除(通过 Swashbuckle/Swagger 看到)