Click here to Skip to main content
15,920,383 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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))"
       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

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's an very urgent issue..
Updated 10-Aug-12 22:26pm
KiranKumar0407 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

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:[^]

Mabye that would work. Try it and let me know :)
Share this answer

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900