gpt4 book ai didi

c# - COMException (0x80040154) : Class not registered when using AxAcroPDFLib

转载 作者:太空宇宙 更新时间:2023-11-03 19:32:41 25 4
gpt4 key购买 nike

我在使用 AxAcroPDF 时遇到以下错误

System.Runtime.InteropServices.COMException (0x80040154): 类未注册(来自 HRESULT 的异常:0x80040154 (REGDB_E_CLASSNOTREG))

抛出错误的行是

((System.ComponentModel.ISupportInitialize)(this.axAcroPDF1)).EndInit();

如果有人知道解决方法请帮忙

最佳答案

我怀疑你的 ActiveX 控件没有注册。

在那种情况下,您需要在 *.ocx 或 *.dll 文件上调用 RegSvr32(对于 AxAcroPDF,我不知道哪个)。

This question和你的很相似。他们发现他们没有正确注册,因为它是一个 64 位目标系统。确保为控件使用正确版本的 regsvr32。一种用于 32 位,一种用于 64 位。

关于c# - COMException (0x80040154) : Class not registered when using AxAcroPDFLib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4041659/

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