I'm using Outlook Redemption for Exchange mails access. for this developing windows service... But I'm getting error when outlook connecting.
OS: Windows 7 64 bit Outlook: 2010 32 bit Outlook Redemption Version: 5.7 Developing Platform Target: x86
I'm using this code:
this.rdoSession = new Redemption.RDOSessionClass();
this.rdoSession.Logon(this.config.MailConfig.Username, this.config.MailConfig.Password, false, false, 0, false);
And exception detail:
Error in MAPILogonEx: MAPI_E_LOGON_FAILED
Make sure your code runs under the Windows user identity that has MAPI profiles.
When running in a service (including ASP under IIS), set your code to run under
the Windows user account that has MAPI profiles.
When connecting to an Exchange Server, you can also use RDOSession.LogonExchangeMailbox
which does not require an existing profile.
Why getting this error? Any ideas?
Thank you!