Search code examples
vstoms-officeoffice-addinsexcel-addins

Cannot run Excel Add-In from Visual Studio 2019


I have Visual Studio 2019 16.8.2 and I have installed the Office Development tools from Visual Studio Installer. I then created an Excel Web Add-In project and when I try to run the project, I get this error:

enter image description here

In the output window, there isn't much useful info: enter image description here

Excel is of course installed, I have the following version: enter image description here

Could there be some form of Compatibility issue? or maybe something in the Visual Studio Version? I tried to check online but couldn't find anything related to this.


Solution

  • The problem is that you should not Visual Studio as administrator. When running as Admin it results in the error. Running as not admin works correctly.