OutlookGoogleCalendarSync: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
OGCS Version: v2.8 beta Installed or Portable: Installed
Problem Description
2019-07-29 09:19:02,042 ERROR 1 OutlookGoogleCalendarSync.OGCSexception [0] - System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Steps to Reproduce the Issue
-
install app on x64 machine running
- Microsoft Windows 10 Enterprise
- Version 1703
- OS Build 15063.1928
- Microsoft Outlook 2016 32-bit
- Version 2016
-
run app
Any other information
-
I followed https://github.com/phw198/OutlookGoogleCalendarSync/wiki/FAQs---COM-Errors#0x80040155---interface-not-registered but no change
-
log is attached OGcalsync.log
-
following prompt pops-up around 5 times before and after error information

About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 64 (25 by maintainers)
Commits related to this issue
- Mask the %USERNAME% element in a file path. #788 — committed to phw198/OutlookGoogleCalendarSync by phw198 5 years ago
- Squashed commit of v2.9.0 from master: commit e97793a415e54d7ee5f9054aaa0a85459817557e Author: Paul Woolcock <11843015+phw198@users.noreply.github.com> Date: Sat Aug 14 23:17:27 2021 +0100 v2.... — committed to phw198/OutlookGoogleCalendarSync by phw198 3 years ago
https://www.microsoft.com/en-us/p/screen-recorder-pro-for-win10/9n27gq6mls5s https://www.screentogif.com/
I know you ran
regasmearlier on against theMicrosoft.Office.Interop.Outlook.DLLshipped with OGCS, but essentially your problem is that Office should install and register the Primary Interop Assemblies (PIAs) automatically, but it doesn’t seem to have in your case.Could you try searching for all instances of the Outlook PIA:
For me, outside of OGCS, I find them in:
c:\Program Files\Microsoft Office\root\Office16\ADDINS\Microsoft Power Query for Excel Integrated\binc:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\15.0.0.0__71e9bce111e9429cI’d be interested if you have either of these - most importantly the 2nd one. If you do, please try registering:
new nst and ost, no pst involved
so I do tomorrow
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm %LOCALAPPDATA%\OutlookGoogleCalendarSync\app-2.8.0-beta\Microsoft.Office.Interop.Outlook.DLLregsvr32 "inercomm.dll