Starting in Visual Studio 2008 Service Pack 1 (SP1), you can use the event viewer in Windows to see error messages that are captured by the Visual Studio Tools for Office runtime when you install or uninstall Visual Studio Tools for Office solutions. You can use these messages from the event logger to resolve installation and deployment problems.
Open Event Viewer and filter for the events you want to see.
In Control Panel, open Administrative Tools.
Start Event Viewer.
In the list of event logs, select Application.
On the View menu, click Filter.
In the Event source list, select VSTO 3.0.
For installation events, in the Event ID box, type 4096.
Click OK to see the filtered view.
Expand Windows Logs.
On the Action menu, click Filter Current Log.
The event viewer includes the following information:
The location of the deployment manifest for the solution.
A message that describes the cause of the error or exception.
These error messages can help you determine the reason for an installation problem, such as an untrusted certificate, an untrusted document location, or an invalid deployment manifest.
After a Visual Studio Tools for Office solution is uninstalled, the error messages remain in the event log.
To show or log error messages when a Visual Studio Tools for Office solution is running, see Debugging in Document-Level Projects and Debugging in Application-Level Projects.
The language of the error message is determined by the Visual Studio Tools for Office runtime language. For instance, if the end user computer has the Japanese language pack for Visual Studio Tools for Office installed, the error message is written to the event log in Japanese.
By default, the event logger is enabled when you install or uninstall Visual Studio Tools for Office solutions. You can disable the event logger by setting the VSTO_EVENTLOGDISABLED environment variable to "1" (one).
In Control Panel, open System.
On the Advanced tab, click Environment Variables.
In the System variables pane, click New.
In the New System Variable dialog box, type VSTO_EVENTLOGDISABLED in the Variable name box.
In the Variable value box, type 1.
Click OK.
Date
History
Reason
May 2008
Added topic.
SP1 feature change.