(Exception from HRESULT: 0x80040154(REGDB_E_CLASSNOTREG))
Loading
(Exception from HRESULT: 0x80040154(REGDB_E_CLASSNOTREG))
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Apr 18, 2023, 6:57 AM
Hi Nuru,
Try this
Please set the project platform target to x86. Since most of the COM you may be using in your project was built on x86. Project Properties-->Build-->Target Platform-->x86
refer below links
https://www.codeproject.com/Questions/612148/Class-not-registered-Exception-from-HRESULT-0x8004
https://stackoverflow.com/questions/51854504/how-to-fix-this-issue-com-exception-class-not-registered-exception-from-hresul
https://stackoverflow.com/questions/1496214/how-to-solve-com-exception-class-not-registered-exception-from-hresult-0x80040
Tuhin PaulPosted Apr 16, 2023, 12:58 AM
The error message "class not registered exception" with the HRESULT code REGDB_E_CLASSNOTREG indicates that a required COM object or DLL is not registered correctly on the system. This can occur when a 32-bit application is trying to use a 64-bit DLL or vice versa, or when the required component is not installed or registered correctly.
Rajkiran SwainPosted Apr 13, 2023, 3:24 PM
The "class not registered" error typically occurs when the application is unable to locate or load a particular component or class. In this case, the error message suggests that there may be an issue with the database connection and the class may not be registered properly.
To troubleshoot this issue, you can try the following steps:
If the above steps do not resolve the issue, it may be necessary to debug the application code or seek assistance from a technical support team.