解决办法:
    - 将所引用的程序集的【嵌入互操作类型】属性设置为【False】。

2、System.Runtime.InteropServices.COMException:“检索 COM 类工厂中 CLSID 为 {F423A81F-5827-49F4-9B34-C2E298EDBD3E} 的组件失败,原因是出现以下错误: 80040154 没有注册类 (异常来自 HRESULT:0x80040154 (REGDB_E_CLASSNOTREG))。”

解决办法:
    - 确认所引用的程序集已通过【regsvr32】注册;
    - 设置编译【平台】为x86。

    参考:[https://stackoverflow.com/questions/1496214/how-to-solve-com-exception-class-not-registered-exception-from-hresult-0x80040](https://stackoverflow.com/questions/1496214/how-to-solve-com-exception-class-not-registered-exception-from-hresult-0x80040)

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2022-01-01
  • 2021-08-31
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案