gpt4 book ai didi

c# - 结果 : 0x80040154 (REGDB_E_CLASSNOTREG))

转载 作者:IT王子 更新时间:2023-10-29 04:14:09 29 4
gpt4 key购买 nike

我正在构建一个 GIS 应用程序,但每当我运行代码时都会出现此错误

System.Runtime.InteropServices.COMException was unhandled Retrieving the COM class factory for component with CLSID {FBF5715D-A05D-11D4-A64C-0008C711C8C1} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

此外,在项目属性中,注册 COM Interop 的选项被禁用。

最佳答案

这也可能是使用 64 位 配置构建代码的问题。你可以尝试选择x86作为构建平台,可以解决这个问题。为此,右键单击解决方案并选择 Configuration Manager 从那里您可以将使用 32 位 .dll 的项目的 Platform 更改为 x86

关于c# - 结果 : 0x80040154 (REGDB_E_CLASSNOTREG)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3003719/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com