Reputation: 43833
Im trying to follow this Microsoft tutorial to display the names of a distribution list in c#
This example prompts the user to select an Exchange distribution list from the Select Names dialog box and expands the distribution list to display its members.
except when I get an error here
I have this in a console app project. How can I fix this?
Upvotes: 0
Views: 89
Reputation: 671
You can fix this by creating an Application instance, as per suggestion made by the prompt in your screenshot. Like so:
Application app = new Application();
Outlook.SelectNamesDialog snd = app.Session.GetSelectNamesDialog();
Upvotes: 1