HRESULT:0x80040154的(REGDB

编程入门 行业动态 更新时间:2024-10-26 10:28:52
本文介绍了HRESULT:0x80040154的(REGDB_E_CLASSNOTREG))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我建立一个地理信息系统的应用,但每当我运行code它给我这个错误

I building a GIS Application but whenever I run the code its giving me this error

System.Runtime.InteropServices.COMException了未处理

System.Runtime.InteropServices.COMException was unhandled

消息= 检索COM类工厂组件与

Message= Retrieving the COM class factory for component with

**CLSID {FBF5715D-A05D-11D4-A64C-0008C711C8C1} failed**

由于以下错误:未注册80040154类(从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))。

due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

以及在项目属性的选项进行注册为COM Interop是禁用

and also in the Project Properties the Option for Register For COM Interop is disabled

推荐答案

这也可能是使用 64位配置构建code的一个问题。你可以尽量选择 86 作为构建平台,可以解决这个问题。要做到这一点鼠标右键单击该解决方案,然后选择项目配置管理器在那里,您可以修改平台使用32位的.dll为 86

This could also be an issue of building the code using a 64 bit configuration. You can try to select x86 as the build platform which can solve this issue. To do this right-click the solution and select Configuration Manager From there you can change the Platform of the project using the 32-bit .dll to x86

更多推荐

HRESULT:0x80040154的(REGDB

本文发布于:2023-11-06 01:44:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1562406.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:HRESULT   REGDB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!