I am attempting to call code in a VSTO add-in.
The first place I landed in my searches was MS Walkthrough Calling Code in an Application Level Add-in
- I made a new VSTO project for Outlook.
In this project I created the following Note Attributes same as in Walkthrough and added the RequestComAddInAutomationService
I then created a WPF application project and added my VSTO addin as a reference.
The following is what happens. Please note that if I simply use the addin Object I can call my code, but I am unable to cast the interface.
The first thing I have noticed is that This blog uses different attributes.
For anyone landing here and looking for a similar question in C# there are lots, this one being very similar however seems very user / computer specific.
So could anyone please help me to understand why I cannot cast the interface?