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
:
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
Rendering Partial View on Button Click in ASP.NET MVC
C# Regex Split - Commas Outside Quotes
How to Get .Net Core Projects to Copy Nuget References to the Build Output
In C#, How to Check If a Tcp Port Is Available
Format Xml String to Print Friendly Xml String
C# Sort and Orderby Comparison
How to Get First N Elements of a List in C#
Dynamically Change Connection String in ASP.NET Core
How Create a New Deep Copy (Clone) of a List<T>
How to Run Another Application Within a Panel of My C# Program
What Is the Purpose of Self Tracking Entities
Using Stringwriter for Xml Serialization
Most Efficient Way to Remove Special Characters from String