I don’t have anything specific about your problem, but I will point out that we don’t support VS2010 with Acrobat/Reader 9 – only VS2008.
Thankyou for the support status info, Irosenth. I wonder why it would work on one computer and not the other?
make sure it is not a problem with 64 bit compilation.
You need to compile explicitly as 32 bit on a 64-bit OS
I have a similar problem, but the strange thing with my executable compiled with x86 with VS 2010 SP1:
Can run on Windows XP, Windows Server x64, Windows 7 x64
but can NOT run on Windows 7 x86.
My Code Stop at the following Line of Code:
Error HRESULT E_FAIL has been returned from a call to a COM Component.
I have a project created in VS2008 on XP.
I then converted the Project into VS 2010 SP1 on Windows 7 x64 compile and it is running on the Windows 7 x86.
I don't know what have change, I only change the code in other form, not the form with Acrobat Viewer Control, recompile and it is nolonger work
on Windows 7 x86.
I then do a search and found this post and try the x86 Compilation (Instead of Any CPU) and it work on Windows 7/Server x64 and Windows XP but not Windows 7 x86.
I then went to the machine with Windows 7 x86 and install Visual Studio 2010, open up the project create a new form and add the Adobe PDF Reader
I get and Error in Visual Studio when adding the control to the form as follow:
Failed to create component 'AxHost'. The message follows:
'System.Runtime.InteropServices.COMException (0x80004005): A wrapper assembly is not registered for this type library.
System.Windows.Forms.Design.DocumentDesigner.AxToolboxItem.CreateComponentsCore(IDesignerH ost host)
System.Drawing.Design.ToolboxItem.CreateComponents(IDesignerHost host, IDictionary defaultValues)
System.Windows.Forms.Design.OleDragDropHandler.CreateTool(ToolboxItem tool, Control parent, Int32 x, Int32 y, Int32 width, Int32 height, Boolean hasLocation, Boolean hasSize, ToolboxSnapDragDropEventArgse)'
I have try remove Acrobat Reader and ReInstall.
Acrobat Reader v10.1.3
Does any one spot any error ?