title: CallingBotSample does not throw welcome Text with Adaptive Card
body: <p>I am trying to run this sample, and not having much luck :</p>
  <p><a href="https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/" rel="nofollow noreferrer">https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/</a></p>
  <p>I created an App on Azure and then used <a href="https://dev.botframework.com/bots/new" rel="nofollow noreferrer">https://dev.botframework.com/bots/new</a> to create a BOT and link it to this App and enabled Calling and configured an ngrok URL so that I can run the project locally under Visual Studio.</p>
  <p>I have configured the App and the sample as explained in the readme and sideloaded it into teams, installing it to the General channel of a nominated Team.</p>
  <p>Although I can make a call to the BOT, and it answers with the wav file in the Visual Studio project (which runs locally via ngrok), I am not seeing the adaptive card in Teams with which to do call control, as shown in the instructions/readme at</p>
  <p><a href="https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/README.md" rel="nofollow noreferrer">https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-calling-meeting/csharp/README.md</a></p>
  <p>Edit:
  I note that CallingBot.OnMembersAddedAsync() which looks like it might be responsible for showing the card, does fire when I add a new member to the team, but then throws the error:
  <em>System.Exception.Message.get returned &quot;Failed to acquire token for client credentials. (AADSTS700016: Application with identifier '&lt;&gt;' was not found in the directory 'Bot Framework'.</em></p>
  <p>Any suggestions please - what am I missing</p>
  <p>EDIT 26 Nov 21:
  configuration as follows</p>
  <pre><code>in the supplied manifest, we set 
  =================================
  the id to the           &quot;Teams App ID&quot;
  we set the Bot id to the    &quot;Azure Application (client) ID&quot;
  
  
  in the appsettings.json, we set
  ================================
    &quot;MicrosoftAppId&quot;:         &quot;Azure Application (client) ID&quot;
    &quot;MicrosoftAppPassword&quot;:   &quot;Azure Application password&quot;
  
  
    &quot;AzureAd&quot;: {
      &quot;TenantId&quot;:     &quot;Company Tenant ID&quot;
      &quot;ClientId&quot;:     &quot;Azure Application (client) ID&quot;
      &quot;ClientSecret&quot;:     &quot;Azure Application password&quot;
  
    &quot;Bot&quot;: {
      &quot;AppId&quot;:        &quot;Azure Application (client) ID&quot;
      &quot;AppSecret&quot;:    &quot;Azure Application password&quot;
  
  
    &quot;UserId&quot;: &quot;User A id within Teams&quot;,
  
    &quot;Users&quot;: [
      {
        &quot;DisplayName&quot;:    &quot;Name of User B&quot;,
        &quot;Id&quot;:         &quot;ID of User B&quot;
      },
      {
        &quot;DisplayName&quot;:    &quot;Name of User C&quot;,
       &quot;Id&quot;:      &quot;ID of User C&quot;
      },
      {
        &quot;DisplayName&quot;:    &quot;Name of User D&quot;,
       &quot;Id&quot;:      &quot;ID of User D&quot;
      },
      {
        &quot;DisplayName&quot;:    &quot;Name of User E&quot;,
       &quot;Id&quot;:      &quot;ID of User E&quot;
      }
    ]
  
  
  When I add the manifest to a team with the code already running, OnMembersAddedAsync() fires and that leads to AdapterWithErrorHandler() firing with the exception :
  
  &quot;Failed to acquire token for client credentials. 
  (AADSTS700016: Application with identifier '&quot;Azure Application (client) ID&quot;' was not found in the directory 'Bot Framework'. 
  This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. 
  You may have sent your authentication request to the wrong tenant.\r\n
  Trace ID: 2eea2365-0e69-434d-befa-eeeb874a5101\r\n
  Correlation ID: 0b06ce58-c03f-4a9b-a897-890f910269b7\r\nTimestamp: 2021-11-26 14:08:27Z)&quot;
  </code></pre>