80080005 Server execution failed

SoWin_Dev 1 Reputation point
2022-04-27T14:48:43.403+00:00

I created an Excel VSTO Add-in using the provided template in Visual Studio. The add-in is working great. However, when the add-in is loaded in Excel other applications that export to Excel fail when attempting to initialize Excel. It's like the Add-in may be breaking the COM connection the exporting application is making with Excel. 197065-error-80080005.png

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,997 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Eugene Astafiev 891 Reputation points
    2022-04-27T15:30:36.033+00:00
    0 comments No comments

  2. SoWin_Dev 1 Reputation point
    2022-04-27T16:06:47.733+00:00

    Before, I was installing the add-in using a batch utility, by placing the files were they need to be and setting the necessary registries in:

    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Excel\Security\Trusted Locations\
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Excel\Addins

    If I use a ClickOnce installer instead, everything works as it should. What else is the ClickOnce installer doing?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.