Error deploying VSTO Office add-on

I am having problems deploying the Visio add-on. Running a VSTO file works on my computer, but whenever I try to move it to any other user computer, it causes a deployment error. I thought that it could be a parameter that I set in the project properties, so I created a completely new plug-in project and set it to display a message box at startup. The error I get is:

An error occurred during installation.
The expected addIn element was not found in XML.

deployment error

+6
ms-office vsto visio
source share
4 answers

This is caused by a problem with Clickonce. I found a workaround by installing addin using MSI. This guide has helped.

From the registry settings section for installing msi:

It is important to note the value of '| vstolocal added to the end of the manifest value. This informs the VSTO runtime that it is locally installed and does not invoke the ClickOnce installer.

+6
source share

I have the same problem with our Word, Excel, Outlook, and PowerPoint add-in. Msi installation works fine. For example, when starting Word, the add-in itself is β€œinstalled”, and then I get an error message. I added vstolocal to the registry, which is in the HKCU tree.

Projects is a Visual Studio 2010 project based on TFS 2008. Installing in Office 2010 is good, an error only occurs when Office 2007 is on the machine.

Anything else I'm watching?

+3
source share

The solution to my experience with this problem was that given by Joeri on July 8 - install Visual Studio 2010 Tools for Office Runtime on the target machine.

+2
source share

This is a problem with the Visio version of your add-in targets compared to what is installed on the client machine. AddIn is an item that is new with 2007 Office versions. Most likely, the client works with Visio 2003.

0
source share

All Articles