Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Outlook COM
Message
 
To
31/12/2002 21:24:43
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00737113
Message ID:
00737349
Views:
21
Hi Keith,

The problem is most likely related to your web service not having sufficient rights to use Outlook. I would recommend using impersonation as explained in thread #682735.

>I am trying to use Outlook to parse names and addresses in my web service but I am getting a HTTP 500 Server Internal Error when instantiating an Outlook Application object:
>
>
>Imports Outlook
>
>    <WebMethod(Description:="Inserts a new lead into the Lead table")> _
>        Public Function InsertLead( _
>            ByVal SourceID As Integer, _
>            ByVal Name As String, _
>            ByVal Address As String, _
>            ByVal Phone As String, _
>            ByVal Email As String) As DsLead
>
>        Dim OutlookApp As New Outlook.Application()
>
>
>The error occurs at the New Outloook.Application() line. I am at a loss on how to debug this. If anyone has successfully used Outlook in their ASP.NET project, I would love to hear some pointers.
-----------------------------------------

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
Reply
Map
View

Click here to load this message in the networking platform