Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Windows Application
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..
Posted 10-Aug-12 23:25pm
Edited 10-Aug-12 23:26pm
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
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:[^]
Mabye that would work. Try it and let me know Smile | :)

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 434
1 OriginalGriff 385
2 CHill60 230
3 CPallini 220
4 Abhinav S 200
0 Sascha Lefévre 75
1 OriginalGriff 70
2 F-ES Sitecore 55
3 Peter Leow 50
4 Dave Kreskowiak 40

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 11 Aug 2012
Copyright © CodeProject, 1999-2015
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