类未注册异常 [英] Class Not registered Exception
问题描述
现在我将我的操作系统更改为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屋!