开发者

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

I am getting following error when using AxAcroPDF

System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

The line which throws error is

((System.ComponentModel.ISupportInitialize)(this.axAcroPDF1)).EndInit开发者_C百科();

If anyone knows the solution please help


I suspect that your ActiveX control is not registered.

In that case, you would need to call RegSvr32 on the *.ocx or *.dll file (I don't know which for AxAcroPDF).

This question is very similar to yours. They found that they weren't registered properly because it was a 64 bit target system. Make sure you use the right version of regsvr32 for the control. One is for 32 bit and one is for 64 bit.


I had already installed the correct version of the DLL file (32bit dll on 32bit Windows XP) and put it as my Project References when I was having this problem.

I had solved this problem by just installing the Adobe Reader software which is required by the AxAcroPDFLib.dll file.


I also faced this same error and in my case I was able to resolve this error by performing following steps.

In Visual Studio Go to build -> options->projects and solutions-> web projects In this tab un-check the option of use the 64 bit version of IIS express for websites and projects.


I have the similar error they are gone after I am install Adobe Reader on my PC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜