Outlook 365 Add-In Error This add-in could not be started - When VS2019/2022 debugger attached

Martin Kirk 96 Reputation points
2021-10-29T11:47:21.51+00:00

I'm trying to develop a pretty basic Outlook Add-in which currently is able to get information about the current open Email.

The Add-in is registered with Outlook and is able to show/work if i choose to Run the website (Casini webserver) and THEN start Outlook Desktop

But if i pick the Manifest Project as startup, and choose "Office Desktop Client" as Startup Action and Click F5 to debug.
Outlook starts up fine and the Add-in is "available" ... but it fails to function and instead gives me the error : "Add-In Error: This add-in could not be started... restart....yada yada"

Similarly i've had similar luck / unluck with VSCode and NodeJS Yeomen samples - where the debugger SOMETIMES work but USUALLY dont.

I've confirmed that im using WebView2 using the inspector.

  • Internet Explorer 11 has beed removed from the computer
  • I'm running exclusively with Edge Chromium
  • I've tried Visual Studio 2019 as well as 2022 but have the same problem.

Any tips / tricks to get this working ?

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,475 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
938 questions
0 comments No comments
{count} votes

0 additional answers

Sort by: Most helpful