Asked By
grahamamie
20 points
N/A
Posted on - 02/19/2012
Hi all.
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.
occurring
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: 1.0.0.0   Win32 Version: 1.0.0.0   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:
Â
Interop.AdCommon.dll,
Â
Interop.Commands.dll,
Â
Interop.ECompositeViewer.dll,
Â
Interop.EPlotCore.dll,
Â
Interop.EPlotModel.dll,
Â
Interop.EPlotRender.dll,
Â
Interop.EPlotViewer.dll and,Â
Â
Interop.ExpressViewerDll.dll.
Â
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
Dear Grahamamie,
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: https://support.microsoft.com/en-us/help/146219/how-to-register-an-activex-control–ocx-manually
Hope this may help you.
Best of luck