Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

vb.net

When I try to create a instance of a COM class it throws an exception as

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

Please suggest how could i solve it?

like image 210
Jaswant Agarwal Avatar asked Sep 30 '09 05:09

Jaswant Agarwal


1 Answers

You need to make sure all of your assemblies are compiling for the correct architecture. Try changing the architecture for x86 if reinstalling the COM component doesn't work.

like image 169
Andy Fiedler Avatar answered Sep 20 '22 22:09

Andy Fiedler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!