我建立一个地理信息系统的应用,但每当我运行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
发布评论