Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to instantiate an Outlook automation object?
Message
From
10/02/2003 12:16:40
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to instantiate an Outlook automation object?
Miscellaneous
Thread ID:
00751480
Message ID:
00751480
Views:
65
Can anyone point me to a reference for creating an Outlook Automation object in my Web Service? I haven't been able to find anything that works.

I have the following code in an .asmx page:
        Dim OutlookApp As Outlook.Application = New Outlook.Application()
        Dim OutlookNamespace As Outlook.NameSpace = OutlookApp.GetNamespace("MAPI")
        Dim OutlookContacts As Outlook.MAPIFolder
        Dim OutlookContact As Outlook.ContactItem
Unfortunately, the code comes to a screetching halt on the very first line. I don't get any specific errors, only a HTTP 500. FYI Outlook has been added to the project references and I can see the properties and methods while typing code.
Next
Reply
Map
View

Click here to load this message in the networking platform