Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot create an Outlook object
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00830742
Message ID:
00830940
Views:
17
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform