<p>We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs:</p>

<p>"System.Runtime.InteropServices.COMException:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." </p>

<p>I have been advised on the Adobe Forums that the reason for the error is that they do not have a 64 bit version of the AxAcroPDF ActiveX control.  </p>

<p>Is there some way around this problem?  For example can I convert the 32bit ActiveX control to a 64bit control myself?</p>

[{'answer_id': 69854, 'author': 'rpetrich', 'author_id': 4007, 'author_profile': 'https://Stackoverflow.com/users/4007', 'pm_score': 5, 'selected': True, 'text': '<p>You can\'t convert Adobe\'s ActiveX control to 64bit yourself, but you can force your application to run in 32bit mode by setting the platform target to x86.</p>\n\n<p>For instructions for your version of Visual Studio, see section 1.44 of <a href="http://msdn.microsoft.com/en-gb/vstudio/aa718685.aspx" rel="noreferrer">Issues When Using Microsoft Visual Studio 2005</a></p>\n'}, {'answer_id': 69877, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Use DLL isolation, works with every 32bit COM+ application. See more at:\n<a href="http://support.microsoft.com/kb/281335" rel="nofollow noreferrer">http://support.microsoft.com/kb/281335</a></p>\n\n<p>With this solution you can isolate your 32 bit COM+ application into a separate 32bit process.</p>\n\n<p>64bit applications search installed COM+ objects at: HKLM\\Software\\Classes, but 32bit applications use HKLM\\Software\\WOW6432\\Classes</p>\n'}, {'answer_id': 85709, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': "<p>The .Net framework 1.1 is always targeting 32 bits CPUs while .Net framework 2.0 and above can target 32 bits or 64 bits according to the processorArchitecture property of the program manifest changed by the 'Platform Target' option of the Visual Studio IDE.\nWith the default option 'Any CPU', the IL code is compiled according to the platform but of course the COM call to the AxAcroPDF 32 bits component fails if the platform is 64 bits.\nJust rebuild the EXE to target 32 bits platform only. This works fine with the WOW64 emulator in Vista 64 bits.</p>\n"}]
['https://Stackoverflow.com/questions/67167', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10135/']