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