I have seen this error come up when Outlook doesn’t have programmatic access enabled in the trust settings. It should be set to “Never ask”. The following registry entries need set at (2) as well:
- HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security\ **promptoomaddressinformationaccess
- HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security\ **promptoomaddressbookaccess
- HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security\ **promptsimplemapiopenmessage
- HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security\ **promptsimplemapinameresolve
- HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\security\ **promptsimplemapisend