Error with Windows app created with VS2008 VB.Net

Asked By 20 points N/A Posted on -
qa-featured

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!
SHARE
Answered By 25 points N/A #93222

Error with Windows app created with VS2008 VB.Net

qa-featured

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

Related Questions