Hi John,
Refer to the following KB article to see if it resolves your error:
http://support.microsoft.com/default.aspx?scid=kb;en-us;309336&Product=ol2002>I'm getting a invalid cast error with the following code. Does anybody know how to a reference to Outlook's namespace?
>
> Outlook.Application ol = new Outlook.Application();
> Outlook.NameSpace ns = ol.GetNamespace("MAPI");
>
>I'm running Office XP but have the old .NET. PIA is installed.
>
>TIA, John
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi