80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
This was case escenario:
We were developing using VS 2010 Asp.net running it as Administrator
Server was Windows 2012 R2 64 bits
We were using an OCX library that works in 32 bit, We installed this Library as Administrator.
Still we were getting the error.
80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Another error We were getting was STDOLE.DLL can not be copied to the Refence folder.
Remember, the Library worked in a 32 bit app.
Go to the Application Pools from the IIS Manager
Right click in the application Pool , select Advanced Settings.
Enable 32-Bit applications SET IT TO TRUE
Set all the Applications Pool the same way.
Then go to your Web Application, right click on it and select Manage application then Advanced Settings
There Select the Application Pool you will be using for the Web Application you are having problems.
Compile, test, celebrate!





