You must install the Microsoft Office primary interop assemblies in the global assembly cache and register them before you can debug or run a Visual Studio Tools for Office solution. The interop assemblies enable managed code to interact with a Microsoft Office application's COM-based object model. For more information, see Office Primary Interop Assemblies.
You can install the complete set of primary interop assemblies in the global assembly cache in two ways:
Note: |
|---|
Visual Studio Tools for Office installs private copies of the primary interop assemblies outside of the global assembly cache. These copies of the assemblies are used for building projects. However, the primary interop assemblies must also be installed and registered in the global assembly cache to perform most development tasks, such as running or debugging projects. For more information, see Office Primary Interop Assemblies. |
Note: |
|---|
You must be an administrator on the development computer to install Visual Studio Tools for Office, the Visual Studio Tools for Office runtime, the .NET Framework, and the Microsoft Office primary interop assemblies. |

Complete Installation
To install the primary interop assemblies when you install the 2007 Microsoft Office system
Install the Microsoft .NET Framework 3.5 or later.
The .NET Framework is required for the primary interop assemblies to be installed in the global assembly cache during the next step.
Install Microsoft Office and select the Complete installation option.
To install the primary interop assemblies when you install Microsoft Office 2003
Install the Microsoft .NET Framework 2.0 or later.
The .NET Framework is required for the primary interop assemblies to be installed in the global assembly cache during the next step.
Install Microsoft Office and select the Complete installation option.
During a Typical installation of Microsoft Office, the primary interop assemblies are set to be installed on first use if the .NET Framework is installed. This installation option works on end user computers when an end user runs a Microsoft Office solution. For more information about installing Visual Studio Tools for Office, see Installing Visual Studio Tools for Office.

Redistributable Primary Interop Assemblies Packages
To install the primary interop assemblies for the 2007 Microsoft Office system by using the redistributable package
To install the primary interop assemblies for Microsoft Office 2003 by using the redistributable package

See Also
Tasks
Concepts
Reference
Other Resources