类未注册异常 [英] Class Not registered Exception

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

问题描述

最近我在xp系统的visual studio 2008中将该项目从vb6迁移到vb.net,并在框架2.0中工作正常。之后,我将框架改为3.5,并在x20中打开了vs2010中的项目,只有这样,我的工作正常。



现在我将我的操作系统更改为Windows 7.这里我打开了项目,我有一些问题我解决了然后构建它成功了。但是当我试图运行我有如下错误


创建表单时出错。有关详细信息,请参阅Exception.InnerException。错误是:类未注册(HRESULT异常:0x80040154(REGDB_E_CLASSNOTREG))



解决方案

这需要更多的细节。请包括内部异常详细信息和调用堆栈 - 这将有助于确定哪个组件抛出错误。



错误本身很清楚 - 您正在使用的类之一没有在Win7系统上注册(即:缺少DLL等)。这可能是因为组件/库从未安装在Win7系统上或安装已损坏。这也可能是因为它是一个32位组件,您在编译选项中定位 AnyCPU x64


Recently i migrate the project from vb6 to vb.net with framework 2.0 in visual studio 2008 in xp system it is working fine in that. After that i changed the framework to 3.5 and opened the project in vs2010 in xp only there also it is working fine for me.

Now i changed my Operating system to windows 7. here i opened the project i got some issues i solved and then build it it is succeed. but when i am trying to run i got error like below

An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

解决方案

This needs more detail. Please include the inner exception details and the call stack - this will help to determine which component is throwing the error.

The error itself is clear - one of the classes you are using is not registered on the Win7 system (ie : missing DLL, etc). This could be because the component/library was never installed on the Win7 system or the installation is corrupt. It could also be because it is a 32-bit component and you are targeting AnyCPU or x64 in your compilation options.

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

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