Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outlook app works in WinForms but not in a Service

1 view
Skip to first unread message

Daniel Lopez

unread,
Jun 11, 2009, 12:13:27 AM6/11/09
to
Hello, I have an app that extracts email attachments and writes them to a
folder. It works fine in a WinForm App but not in a Service App. I have the
same imports and references. In addition, the service creates a second
thread in order to sleep the thread. The service stops responding when it
creates the Outlook.Application object. The line is:

Dim oApp As Outlook.Application = New Outlook.Application

This is normal code and I don't understand why as soon as I comment this
line the service begins to work or at least the function is called.

Sincerely
Please help!!!!!!!

0 new messages