Hi there,
I think the start of the code is fine; but thiss isn't:
Code:
Outlook.SelectNamesDialog snd = Application.Session.GetSelectNamesDialog();
Here, Application refers to the Application of ASP.NET. You need to prefix Application with something from the Oulook namespace (at least, that's what my guess is; I don't know this code so I don't know where your Application is supposed to come from). E.g. something like this:
Code:
Outlook.SelectNamesDialog snd = SomeNamespaceHereApplication.Session.GetSelectNamesDialog();
Hope this helps,
Imar