question

MartinKirk-1451 avatar image
0 Votes"
MartinKirk-1451 asked MartinKirk-1451 answered

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

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-addins-devvs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MartinKirk-1451 avatar image
0 Votes"
MartinKirk-1451 answered

So ... Apparantly everything stops working if Visual Studio runs as Admin...

https://stackoverflow.com/questions/49234705/office-add-in-only-loaded-as-admin

after disabling Admin mode, i'm able to run and debug addins.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.