Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot create an Outlook object
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Cannot create an Outlook object
Miscellaneous
Thread ID:
00830742
Message ID:
00830742
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform