Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / General MS Outlook Questions / February 2008

Tip: Looking for answers? Try searching our database.

OpenMsgStore fails to open from Win Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emir subasic - 11 Feb 2008 10:26 GMT
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
Ken Slovak - [MVP - Outlook] - 11 Feb 2008 13:53 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi,
>
[quoted text clipped - 15 lines]
>
> url:http://ureader.com/gp/1075-1.aspx
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.