来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG [英] Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG

查看:184
本文介绍了来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,下午好.

我在vb.net 2003(Dotnet 1.0)中开发了一个项目,该项目由AxInterop.MSFlexGridLib组成.使用的网格为MSFLEXgrid.我已经将整个项目迁移到VS 2005,然后在打开包含网格的表单时出现如下错误:

Hi All, very good afternoon.

I have a project developed in vb.net 2003(Dotnet 1.0) it consist of AxInterop.MSFlexGridLib. The grid used is MSFLEXgrid. I have migrated the whole project to VS 2005 then while opening the form that consist of the grid throws me a error as below:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. 
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) 
Hide     
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.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.set_Site(ISite value)
at System.ComponentModel.Container.Add(IComponent component, String name)
at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name)
at


请帮忙.


Please help.

推荐答案

您尝试初始化的程序或进程似乎未安装在计算机上,安装损坏或需要要注册.
安装,修复(通过添加/删除程序")或注册(通过regsrv32.exe).

您应该抵制MSFlexGridLib通讯控件
因为它可能会损坏或损坏
It looks like whichever program or process you''re trying to initialize either isn''t installed on your machine, has a damaged installation or needs to be registered.
Either install it, repair it (via Add/Remove Programs) or register it (via regsrv32.exe).

You should resister your MSFlexGridLib comm control
because it may damage or corrupted


我认为您正在尝试引用旧的.NET 1.1互操作DLL.尝试删除这些引用,然后重新添加COM引用,这将为您自动创建.NET 2.0互操作填充DLL.
I think you are trying to reference the old .NET 1.1 interop DLLs. Try removing those references and re-add the COM reference, which will automatically create the .NET 2.0 interop shim DLLs for you.


这篇关于来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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