- The Visual Studio Tools for Office (VSTO) Runtime is not installed.
- The application cannot access
HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins.
Whats the issue?
Issue 1: VSTO Runtime not installed
VSTO Runtime is a component required to run Microsoft Office-based solutions that are built by using Microsoft Visual Studio. This issue indicates that the VSTO Runtime, which is necessary to run our Word Add-in, is not installed on your system.Issue 2: Inaccessible Registry Key
The pathHKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins is a specific location in the Windows Registry where Microsoft Word Add-ins are registered. Our application needs to access this location to register our Word Add-in. The inability to access this Registry key may indicate that the current user account does not have the necessary permissions.
Here’s the solution
Here’s how you can solve these issues:Issue 1: Install VSTO Runtime
1
Visit the official Microsoft Download Center
2
Search for “Visual Studio 2010 Tools for Office Runtime”.
3
Click on the search result to access the download page.
4
Click “Download” and follow the instructions to install the VSTO Runtime.
Issue 2: Gain access to Registry Key
1
Make sure that the current user account has the necessary permissions to edit the Windows Registry. This usually requires administrative privileges.
2
If necessary, run our application as an administrator. Right-click on the application icon and choose “Run as administrator”.