Re: How to create a MAPI profile from a service?



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



.



Relevant Pages

  • ASP.NET Security problem trying to access MAPI
    ... Because of limitation of our Exchange Server here in the office, ... I am using MAPI, via a MAPI .NET wrapper called MAPI33. ... i.e. my email account. ... Domain User, i.e. myself, hence when I tried to log-on to the email ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Dave Goldman help: rename AD user creates prob w autocomplete Outl
    ... When I rename an AD user account and Exchange Mailbox using the steps ... After renaming an Active Directory user account, the new user name and the ... I typed jwalter into Outlook, arrowed down, and deleted the name from the ... I rebuilt the Offline Address Book on the Exchange server and redownloaded ...
    (microsoft.public.exchange.admin)
  • Re: Exchange Password
    ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... |> course of logging on to the Exchange server. ... if the local account uses the same ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange Password
    ... authenticaiton in Outlook. ... Technically speaking, whenever you open the mailbox on Exchange server, the ... with the domain account, ... Open Outlook then you won't be prompted for authentication. ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange Password
    ... authenticaiton in Outlook. ... Technically speaking, whenever you open the mailbox on Exchange server, ... with the domain account, ... Open Outlook then you won't be prompted for authentication. ...
    (microsoft.public.windows.server.sbs)