View Single Post
  #4 (permalink)  
Old April 19th, 2010, 03:32 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!