Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows Application
Hi,
I have a deep issue. I am trying to open a form in windows project in design mode using VS 2008 it says the following error "Error 80040154 (Class not registered exception)"
From the stack error :
 
System.Runtime.InteropServices.COMException occurred
  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 SCMAudit.frmAuditEnvironment.InitializeComponent() in C:\Test\ScmWorkBench_mod\Upgraded\ScmWorkBench\frmAuditEnvironment.Designer.cs:line 2517
       at SCMAudit.frmAuditEnvironment..ctor() in C:\Test\ScmWorkBench_mod\Upgraded\ScmWorkBench\frmAuditEnvironment.Designer.cs:line 55
  InnerException: 
 
Can anyone please help me to oen the form in design mode.
 
Note : The form opens in VS 2008 in 32 bit machine but it failing to open the form in design mode in 64 bit machine. Please help me...it's an very urgent issue..
Posted 10-Aug-12 23:25pm
Edited 10-Aug-12 23:26pm
v2
Comments
KiranKumar0407 at 11-Aug-12 4:34am
   
Hi Kenneth,
The issue is i am not able to open a windows form in design mode in VS 2008 in 64 bit PC.When i try to open the form in design mode it's showing the error "class not registered".I need to open this in design mode and i have a fix a UI issue in that form.Please let me know if u need anything more info.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Well, it looks like somthing that is connected to 32 vs 64 bit. Looks like you need to perform some tricks before solving this problem:
 
http://www.theogray.com/blog/2009/10/comexception-regdbeclassnotreg-on-64-bit-windows[^]
 
Mabye that would work. Try it and let me know Smile | :)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 11 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100