![]() |
Class not Registered |
Post Reply ![]() |
Author | |
GeeSix ![]() Newbie ![]() Joined: 13 June 2011 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 13 June 2011 at 8:43am |
First let me say that the vb.net sample project provided by CodeJock works fine and as expected.
My environment is Visual Studio 2008 working with .NET 3.5 running a VB.NET project
I have tried to mimick the references and controls from the sample project into my own project with no success.
I am able to place a PropertyGrid control on my form but as soon as i load that form I get the "Class not Registered" error. Below is the trace:
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 EngraveProX5.NewPreferences.InitializeComponent() in C:\Users\johnson\Documents\My Dropbox\EngravePro.NET\Projects\Production\EngraveProX5\EngraveProX5\Forms\NewPreferences.designer.vb:line 231 at EngraveProX5.NewPreferences..ctor() InnerException: I am pretty much at a loss at this point as to whats wrong and would appreciate any feedback to help me possibly find a solution.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Do you have x64 OS ?
Try reproduce it with new project and attach here to check what you do wrong.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
GeeSix ![]() Newbie ![]() Joined: 13 June 2011 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
No this is on a 32-bit.
I started a new project and I dont have this issue. This is why I am at a loss as to why its happening in my other project.
|
|
![]() |
|
GeeSix ![]() Newbie ![]() Joined: 13 June 2011 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
If I try to perfomr the same steps to add the property grid control to a fomr in my application, the first message i get is: Failed to import the ActiveX Control. Please ensure it is properly registered.
|
|
![]() |
|
GeeSix ![]() Newbie ![]() Joined: 13 June 2011 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Bump
|
|
![]() |
|
netjockey ![]() Newbie ![]() Joined: 05 September 2011 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
I just downloaded the eval version of SuitePro ActiveX 2011 and was trying to build one of their sample C# .NET programs on Visual Studio 2008 on a Win7 box and got the same error.
You need to make sure the project Platform type is x86 for either Debug or Release to properly build. If you still get errors, make sure that the ActiveX controls are registered with your system - use the COM Registrator that comes installed with Codejock's software. Hope this helps.
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
By default .NET is set to "Any CPU", like said previously, be sure it is x86 for the eval. In the retail you can use x64 ocx if you wish.
|
|
![]() |
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 |