Cannot use Outlook Mail Activities due to the following error: Message: Unable to cast COM object of type ‘Microsoft.Office.Interop.Outlook.ApplicationClass’ to interface type ‘Microsoft.Office.Interop.Outlook._Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00063001-0000-0000-C000-000000000046}’ failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
Fix the TypeLib
- Navigate to HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046}
- Delete the version keys (e.g. 9.5) for any version of Outlook that is not installed on the system, based on the Version Table Provided.
- For example, if not using Outlook 2013 then remove the 9.5 entry. If not using Outlook 2010 then remove the the 9.4 entry.
- DO NOT DELETE the entry for the version that was specified in the last step of the previous Fix The Interface section.
Ensure MSOUTL.LIB is Registered
- In the previous Fix The Typelib section, make sure that the registry key value ending with MSOUTL.OLB is pointing to a valid file location. The key location should be something like HKEY_CLASSES_ROOT\TypeLib\{00062FFF-0000-0000-C000-000000000046}\9.6\0\Win64
- Make sure that file is properly registered
- Download regtlibv12.exe to the computer
- Go the Windows Start Menu and type cmd
- In the search results, right-click cmd.exe and select Run as Administrator...
- Change directory to where you downloaded regtlibv12.exe, eg: cd %USERPROFILE%\Downloads
- Execute the following command, where is the value taken from step #iii:
- regtlibv12.exe "".
For example:
- regtlibv12.exe "C:\Program Files\Microsoft Office\root\Office16\MSOUTL.OLB"
- Run Outlook .