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

1

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();

If anyone knows the solution please help

c#
winforms
comexception
interopservices
asked on Stack Overflow Oct 28, 2010 by Ansar Muhammad

4 Answers

4

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.

answered on Stack Overflow Oct 28, 2010 by msergeant • edited May 23, 2017 by Community
1

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.

answered on Stack Overflow Jul 27, 2013 by Aryo
0

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.

answered on Stack Overflow May 16, 2016 by Kuldeep Marker
0

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

answered on Stack Overflow Nov 13, 2017 by Ден Денис

User contributions licensed under CC BY-SA 3.0