Class Not registered Exception

不羁岁月 提交于 2019-12-23 02:50:54

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/15478117/class-not-registered-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!