gSyncit Application Issue

SUMMARY

When starting gSyncit or Outlook you may encounter the following error message indicating "Access is denied" when gSyncit attempts to load the Microsoft Office Interop Assembly component allowing gSyncit to interface with the Outlook API...

"System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. Access is denied."

UPDATE: The root issue, as discovered by Tim Wappat (http://timwappat.info/post/2020/01/24/Office-Interop-Access-is-denied-office), occurs in the scenario where a new PC using a OEM version of Windows comes pre-installed with the Windows Store version of Office 365 and a second version is then installed on the same computer. This second Microsoft Office installation is typically deliberae as the user wants to use their copy of Microsoft Office, not the pre-installed Windows Store version. When the  Windows Store installs periodic updates it includes updates to Office 365 that changes permissions on the Microsoft.Office.Interop.Outlook causing this "access denied" issue. Running the Microsoft .Net Framework repair corrects the permissions on the Microsoft.Office.Interop.Outlook component in the folder "C:\Windows\assembly\GAC_MSIL\" . However, as soon as the Windows Store applies updates for the Windows Store version of Office 365 it will revert this fix and the cycle begins all over. The best solution in this case is to uninstall The Windows Store version of Microsoft Office Desktop Apps.

RESOLUTION

To correct this issue use one of the following two options.

  1. Solution #1
    1. Right click the gSyncit system tray icon and select repair. Follow the repair steps and then restart Outlook.
    2. Run the Microsoft .Net Framework repair tool using the link provided below.  
      https://www.microsoft.com/en-us/download/details.aspx?id=30135
  2. Solution #2

    Uninstall Microsoft Office Desktop Apps managed by Windows Store (if not using this version of Office)
    1. In Windows click Settings -> Apps -> Apps & features -> Microsoft Office Desktop Apps -> Uninstall.
    2. If step 1 does not work then from Windows Start search for and run "Windows PowerShell" and run the following commands ...
      1. Remove Office Desktop Dependencies
        "(Get-AppxPackage -Name Microsoft.Office.Desktop).Dependencies | Remove-AppxPackage"
      2. Remove Office Desktop Apps
        "Get-AppxPackage -Name Microsoft.Office.Desktop | Remove-AppxPackage"
      3. Validate dependencies are removed
        "(Get-AppxPackage -Name Microsoft.Office.Desktop).Dependencies"