Re: How to create a MAPI profile from a service?
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Tue, 3 Oct 2006 10:52:46 -0700
Local service account cannot access any network resources. Your code needs
to run as a domain user to be able to talk to an Exchange server.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Chris" <chrisforng@xxxxxxxxxxxxxxxx> wrote in message
news:OQrCgTo5GHA.4304@xxxxxxxxxxxxxxxxxxxxxxx
Hi, please help.
I am using MAPIAdminProfiles to get the Profile management interface and
use CreateProfile() and ConfigureMsgService() to create a MAPI profile to
access Exchange 2000. Everything works fine if I run my application
interactively. But it fails at ConfigureMsgService() when running as
Windows Service. Becaue the service is running as LocalSystem account, it
seems that account cannot call ConfigureMsgService().
What should I do? I know I can impersonate another user but I tend not to
do that. Is there any setting somewhere to let LocalSystem account to call
ConfigureMsgService()?
Thanks,
Chris
.
- References:
- How to create a MAPI profile from a service?
- From: Chris
- How to create a MAPI profile from a service?
- Prev by Date: Re: Removing attachments from a PST file & compacting
- Next by Date: mail profile question
- Previous by thread: How to create a MAPI profile from a service?
- Next by thread: Re: Removing attachments from a PST file & compacting
- Index(es):
Relevant Pages
|