AnsweredAssumed Answered

eDrawings API Problem

Question asked by Tony Szuta on Nov 24, 2008
Latest reply on Oct 1, 2010 by Ben Guenther
This should be simple enough to do. Drag the control to the form, put together a filename string, and open it with the eDrawing Control. Well, in my case it does not work.

Here is the error message that I am getting:

An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Details:

System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
Source="EDrawingsConsole"
StackTrace:
at EDrawingsConsole.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190 at EDrawingsConsole.My.MyProject.MyForms.get_eDrawingsConsole() at EDrawingsConsole.eDrawingsConsole.Main() in C:\Program Files (x86)\Common Files\eDrawings2009\api\examples\Sample1_eDrawings_Console\EDrawingsConsole\main.vb:line 6 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.COMException
ErrorCode=-2147221164
Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid) at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid) at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid) at System.Windows.Forms.AxHost.CreateInstance() at System.Windows.Forms.AxHost.GetOcxCreate() at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state) at System.Windows.Forms.AxHost.CreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.AxHost.EndInit() at EDrawingsConsole.eDrawingsConsole.InitializeComponent() in C:\Program Files (x86)\Common Files\eDrawings2009\api\examples\Sample1_eDrawings_Console\EDrawingsConsole\main.vb:line 1090 at EDrawingsConsole.eDrawingsConsole..ctor() in C:\Program Files (x86)\Common Files\eDrawings2009\api\examples\Sample1_eDrawings_Console\EDrawingsConsole\main.vb:line 15
InnerException:


Is this thing not registered? I am not trying to make an add-in, just a stand alone exe. The eDrawings SDK example doesn't work either. I believe it is something with my system.

Any help is appreciated.

Thanks in advance!

Outcomes