N/APosted on - 02/19/2012
I created a Windows app using VS2008 VB.Net. This app uses the DWF Viewer control from ADR2011 (AxCExpressViewerControl) and it's deployed using ClickOnce.
This app goes well on my development computer, a Windows 7 with ADR2011 installed, as well as Inventor 2008 Suite.
The problem starts when I attempt to run this app on a computer without AutoDesk apps. The ClickOnce installation goes well with no errors. I can open the startup form without error. But when I try to open the window that contains the DWF Viewer Control, I get this error along with the full debug dump:
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)
I can supply you with the rest of the debug dump, but this might be the only relevant part:
AxInterop.ExpressViewerDll Assembly Version: 18.104.22.168 Win32 Version: 22.214.171.124 CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Local%20Settings/Apps/2.0/WV8G3C2N.V2T/Z02TQ50X.PG9/tank..tion_57812f009c7392e1_0001.0000_d09fda1857da0da5/AxInterop.ExpressViewerDll.DLL
In the "Application Files" area of the Publish tab in VS2008, I have set AxInterop.ExpressViewerDll.dll to "Include" and "Required". I have also set the same settings for the following:
All of the "Included" files appear to be on the test computer. The app is installed and ran using an administrator account on an XP SP3 box. Is there a bootstrapper for ADR2011?
Please contact me along with your suggestion.
Thanks in advance!
Error with Windows app created with VS2008 VB.Net
U didn't mention in your message whether your Operating System is 32-bit or 64-bit. Anyway, according to the error message your received " System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG) ", did you try install/register the COM component on your Windows Operating System?. Also, what did you set your target platform for your application, it seems that u set it to "Any CPU" whether it should be set to x86. In order to get help on how to register the COM, please refer to this link by Microsoft Support: http://support.microsoft.com/kb/146219
Hope this may help you.
Best of luck