错误80040154(类未注册的异常) [英] Error 80040154 (Class not registered exception)

查看:529
本文介绍了错误80040154(类未注册的异常)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个很深的问题.我正在尝试使用VS 2008在Windows项目中的设计模式下打开窗体,它显示以下错误错误80040154(类未注册的异常)"
从堆栈错误:

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: 



谁能帮我在设计模式下填写表格.

注意:该窗体在VS 2008中以32位计算机打开,但是无法在设计模式下的64位计算机中打开该窗体.请帮助我...这是一个非常紧急的问题..



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..

推荐答案

好吧,它看起来像连接到32位和64位的东西.看来您需要执行一些技巧才能解决此问题:

http://www.theogray.com/blog/2009/10/comexception-regdbeclassnotreg-on-64-bit-windows [ ^ ]

Mabye那行得通.试试看,让我知道:)
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 :)


这篇关于错误80040154(类未注册的异常)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆