TYPE_E_CANTLOADLIBRARY -Error

Add-in Express™ Support Service
That's what is more important than anything else

TYPE_E_CANTLOADLIBRARY -Error
 
BerndH




Posts: 99
Joined: 2014-09-23
My add-in (for outlook) generates an error TYPE_E_CANTLOADLIBRARY "Microsoft.Office.Interop.Outlook._Application" if I do

var ns = OutlookApp.GetNamespace("MAPI");

But only on win8 & office 2010. All other Offices are okay. The adxloader manifest has minOfficeVersionSupported="14"
The add-in has the correct Microsoft.Office.Interop.Outlook included ...

So, can you give me a hit, what?s my problem here ?

Bernd
Posted 05 Oct, 2021 08:55:18 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Bernd,

You should repair the Office installation. If this doesn't help, reinstall Office.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Oct, 2021 09:22:56 Top
BerndH




Posts: 99
Joined: 2014-09-23
Nope, that didn?t help me :-(

But I found it:
(just for another one have the same problem)
there was a newer office installed on the pc before. The deinstallation didn?t delete all of "their keys".

For Microsoft Outlook Registry: HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046}

Outlook 2003 → 9.2
Outlook 2007 → 9.3
Outlook 2010 → 9.4
Outlook 2013 → 9.5
Outlook 2016 → 9.6

i just deleted my 9.6 keys and everything was fine ... now I only have the 9.4 keys

:-)

Bernd
Posted 05 Oct, 2021 10:59:17 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Thank you very much!

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Oct, 2021 03:33:17 Top