How to Solve Com Exception Class Not Registered (Exception from Hresult: 0X80040154 (Regdb_E_Classnotreg))

How to solve COM Exception Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))?

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 Regsvr32.exe).

You haven't provided enough information for us to help you any more than this.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)

Okay I figured out what the problem was. Essentially when you open the project file (.proj) of visual studio in a text editor you'll find all the settings etc in XML format. So I did that and found the line that specifies the target CPU:

<PlatformTarget>AnyCPU</PlatformTarget>

Removed the line and it started working.

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) in UWP Background process registration

Please make sure you have added a BackgroundTask Declaration in Package.appxmanifest file, checked the System Event and set the Entry Point:
Sample Image

Failed to load VB.Net form: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

First off, that doesn’t look like you have built it with a pdb, that should be your first step, see if it doesn’t give you a line number. If that doesn’t work, then you’ll have to open up the *.design.vb file manually delete things until you don’t get that error.

Basically it’s a bit tedious, but not difficult if you understand how things happen in the designer — basically it’s just another class and everything it does you can do manually.



Related Topics



Leave a reply



Submit