Class not registered - How do I fix this? |
Post Reply |
Author | |
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 31 October 2009 at 7:33am |
Hi Everyone,
I get this error after dragging the command bar or any other Codejock control onto my form in Visual Basic 2008. Can you tell me what further steps need to be completed so Visual Basic works with the Codejock controls: 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="WindowsApplication1" StackTrace: at WindowsApplication1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190 at WindowsApplication1.My.MyProject.MyForms.get_Form1() at WindowsApplication1.My.MyApplication.OnCreateMainForm() in D:\Development\VB\Emad\WindowsApplication1\WindowsApplication1\My Project\Application.Designer.vb:line 35 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 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 Message="Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" Source="System.Windows.Forms" ErrorCode=-2147221164 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 WindowsApplication1.Form1.InitializeComponent() in D:\Development\VB\Emad\WindowsApplication1\WindowsApplication1\Form1.Designer.vb:line 47 at WindowsApplication1.Form1..ctor() InnerException: Thanks. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Maybe you updated Suite version, but your toolbox has old one. Try add again new items.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
I uninstalled and re-installed the suite but still get the error. Do I need to copy the ocx files to the same folder that my vb exe program resides in? Thanks. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi,
I just copied all ocx files and the registrator file into the same folder as my vb exe file and ran the registrator but vb still gives me the class error. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
I think I need step by step instructions on getting CodeJock into VB since I am just guessing on how to set it up.
Please post a tutorial since I did not see any setup instructions and the tutorials included are for an older version of VB. Thanks. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
gaudetm
Senior Member Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
Post Options
Thanks(0)
|
In the projet menu select show all files, than remove any references to codejock controls and in bin folder find any interop files associated with codejock controls than remove any toolbox tab that as codejock controls in it than register the last version codejock controls from there tools in the bin folder recreate the toolbox tab and make sure you select the latest version of the codejock controls in the add com references dialog then drag and drop the control on your form should work well now, each time u upgrade delete all the interop files generated in your application folder of codejock controls and register controls before reopen the projet. Wish there would be a easy tool to upgrade controls in .net as in vb6 where they ask want to upgrade control x version y to version z
Marc
|
|
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi gaudetm,
I tried your steps but still get the class not registered error. Thanks for trying anyway. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, I see now you have x64 machine... Our ActiveX are 32 bit dlls - to make it work with x64 .NET you need open configurations of application and change
"Any CPU" option to "x86". |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
rleiman
Newbie Joined: 20 June 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi Oleg,
That was it. Thanks so much for the help. Do you have a Codejock suite tutorial that works with VB 2008? The tutorial that is supplied with the product is for VB 6. Truly, Emad |
|
Product: Xtrewme Suite Pro (ActiveX) version 13.2.1
Platform: Windows7 Home Premium (64bit) Language: VB 2008 .net |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Sorry, nothing for VB.NET. Please follow samples we provide.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |