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
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.