HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

前端 未结 2 1089
无人及你
无人及你 2020-12-06 09:10

I am building a GIS Application but whenever I run the code it\'s giving me this error

System.Runtime.InteropServices.COMException was unhandled Ret

相关标签:
2条回答
  • 2020-12-06 09:43

    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

    0 讨论(0)
  • 2020-12-06 09:49

    Just looking at the message it sounds like one or more of the components that you reference, or one or more of their dependencies is not registered properly.

    If you know which component it is you can use regsvr32.exe to register it, just open a command prompt, go to the directory where the component is and type regsvr32 filename.dll (assuming it's a dll), if it works, try to run the code again otherwise come back here with the error.

    If you don't know which component it is, try re-installing/repairing the GIS software (I assume you've installed some GIS software that includes the component you're trying to use).

    0 讨论(0)
提交回复
热议问题