title: GraphAPI returns "Resource Not Found" trying to get email list
body: <p>GraphAPI allows me to authenticate in my application, but returns <em><strong>Resource could not be discovered</strong></em> when attempting to fetch my email messages, calendar, or anything else. After authenticating, the scope returned from the auth request matches the scope I've setup in the Azure portal for the app. My profile info is also correct.</p>
  <p>I'd greatly appreciate any help with this.</p>
  <p>Thanks!</p>
  <pre><code>string scope = &quot;https://graph.microsoft.com/.default&quot;;
  
  var builder = PublicClientApplicationBuilder.Create(ClientId)
      .WithAuthority($&quot;{Authority}{Tenant}&quot;)
      .WithDefaultRedirectUri();
  
  _clientApp = builder.Build();
  TokenCacheHelper.EnableSerialization(PublicClientApp.UserTokenCache);
  
  AuthenticationResult authResult = null;
  IAccount firstAccount;
  
  var accounts = await PublicClientApp.GetAccountsAsync();
  firstAccount = accounts.FirstOrDefault();
  
  try
  {
      authResult = await PublicClientApp.AcquireTokenSilent(scope, firstAccount)
          .ExecuteAsync();
  }
  catch (MsalUiRequiredException)
  {
      try
      {
          authResult = await PublicClientApp.AcquireTokenInteractive(scope)
              .WithAccount(firstAccount)
              .WithPrompt(Microsoft.Identity.Client.Prompt.SelectAccount)
              .ExecuteAsync();
      }
      catch (MsalException msalex)
      {
          Console.WriteLine($&quot;Error Acquiring Token:{System.Environment.NewLine}{msalex}&quot;);
      }
  }
  catch (Exception ex)
  {
      Console.WriteLine($&quot;Error Acquiring Token Silently:{System.Environment.NewLine}{ex}&quot;);
      return false;
  }
  
  if (authResult != null)
  {
      try
      { 
          var graphClient = new GraphServiceClient(
              new DelegateAuthenticationProvider(
                  (requestMessage) =&gt;
                  {
                      requestMessage.Headers.Authorization = new AuthenticationHeaderValue(&quot;bearer&quot;, authResult.AccessToken);
                      return (Task.FromResult(0));
                  }
          ));
  
          var me = await graphClient.Me.Request().GetAsync();
          mUserName = me.DisplayName;           // This works!
  
          try
          {
              var messages = await graphClient.Me.Messages
                  .Request()                    // This fails
                  .GetAsync();
          }
          catch (Exception) {}
      }
  }
  </code></pre>
  <p>}</p>