Fixing issue "TYPE_E_LIBNOTREGISTERED"

If you are receiving the following error when attempting to perform synchronization with GogTasks using Outlook 2010, read this guide on how to fix it:

Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.NameSpaceClass' to interface type 'Microsoft.Office.Interop.Outlook._NameSpace'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063002-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)).

I do not know the cause of this error occuring, but I do know it is related to the Microsoft Primary Interop Assemblies (PIA), and I know how to fix it. You will need administrator access to your computer to perform these steps.

  1. Download and extract piafix-2010.zip to a temporary directory on your local hard drive.
  2. Quit Outlook
  3. Locate a file named
    MSOUTL.OLB
    on your hard drive. A file search in
    C:\PROGRAM FILES
    will get the job done. It will be in an Office folder. If you have several office versions installed, make not of the location in the folder named Office14 which is for Outlook 2010.
  4. Edit
    hklm_typelib_2010.reg
    using your favourite text editor. Replace the path at line 12 with the path to
    MSOUTL.OLB
    you just located. Note that you must use double backslash as path separator. Example of valid line 12:
    @="C:\\Program Files\\Microsoft Office\\Office14\\MSOUTL.OLB"
  5. Edit
    hkcr_typelib_2010.reg
    and peform the same procedure as in the step above.
  6. Double click on
    piaclean.reg
    extracted from the archive. This will clean up any "mess" in the registry related to the PIAs and prepare you for the next steps.
  7. Double click and import
    hklm_typelib_2010.reg
  8. Double click and import
    hkcr_typelib_2010.reg
  9. Double click and import
    hkcr_interface_2010.reg
  10. Start Outlook and test a synchronization with GogTasks.
Amazon