OpenMsgStore fails to open from Win Service

E

emir subasic

Hi,

I have written a windows service which opens an outlook profile - then a
desired message store - then a desired folder and then processes all emails
in that folder depending on a filter criteria. The service is run against
Outlook XP. There are 7 services in total which are run simultaneously
against the same profile/store/folder. All is well for a certain period of
time. After about 15 minutes of running the services fail to open the
message store which they have been opening before without any problem. The
HRESULT that I get is -2147221219. After three attempts to open the message
store the win services die. Does anyone know what could be happening here?


Any help is much appreciated.
Thanks

url:http://ureader.com/gp/1075-1.aspx
 
K

Ken Slovak - [MVP - Outlook]

First, programming questions belong in a programming group. Second, using
the Outlook object model is not supported for use in a service. No one will
help with this problem. You need to re-write your code to use Extended MAPI
or CDO 1.21 or Redemption (www.dimastr.com/redemption) for things to work
properly in a service, then people will help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top