title: Exception thrown: 'Microsoft.Exchange.WebServices.Data.ServiceResponseException' in Microsoft.Exchange.WebServices.dll
body: <p>I'm trying to learn using EWS API. I want to retrieve all the appointments from my calendar.</p>
  
  <p>I used the following technique to get the appointments:</p>
  
  <pre><code>CalendarFolder folder = CalendarFolder.Bind(service, WellKnownFolderName.Calendar);
  CalendarView view = new CalendarView(startDate, endDate);
  FindItemsResults&lt;Appointment&gt; results = folder.FindAppointments(view);
  </code></pre>
  
  <p>Assume that the startDate and endDate are given.</p>
  
  <p>My code keeps crashing at <strong>WellKnownFolderName.Calendar</strong> </p>
  
  <p>And I get this exception:</p>
  
  <blockquote>
    <p>'Microsoft.Exchange.WebServices.Data.ServiceResponseException' in
    Microsoft.Exchange.WebServices.dll</p>
  </blockquote>
  
  <p>The ErrorCode is '<strong>ErrorImpersonateUserDenied</strong>'
  The Message is <strong>The account does not have permission to impersonate the requested user.</strong></p>
  
  <p>But I am trying to access my account only with the EWS API.
  And I cannot give delegate access to myself from outlook.</p>
  
  <p>Any help is appreciated.</p>