- gSyncit Support
gSyncit Application Issue
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=18.104.22.168, 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.
To correct this issue use one of the following two options.
- Solution #1
- Right click the gSyncit system tray icon and select repair. Follow the repair steps and then restart Outlook.
- Run the Microsoft .Net Framework repair tool using the link provided below.
- Solution #2
Uninstall Microsoft Office Desktop Apps managed by Windows Store (if not using this version of Office)
- In Windows click Settings -> Apps -> Apps & features -> Microsoft Office Desktop Apps -> Uninstall.
- If step 1 does not work then from Windows Start search for and run "Windows PowerShell" and run the following commands ...
- Remove Office Desktop Dependencies
"(Get-AppxPackage -Name Microsoft.Office.Desktop).Dependencies | Remove-AppxPackage"
- Remove Office Desktop Apps
"Get-AppxPackage -Name Microsoft.Office.Desktop | Remove-AppxPackage"
- Validate dependencies are removed
"(Get-AppxPackage -Name Microsoft.Office.Desktop).Dependencies"