Getting my Azure bot on Bot Framework
I am getting the following error when trying to test my bot in “Test in Web Chat”:
2024-06-13 19:11:30.809 +00:00 [Error] Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID “xxxxxxxxxxxxxxxxxxxxx”, Request ID “xxxxxxxxxxxxxxxxxxxxxxxxx”: An unhandled exception was thrown by the application.System.AggregateException: Failed to acquire token for client credentials. (AADSTS700016: Application with identifier ‘xxxxxxxxxxxxxxxxxx’ 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.
It seems as though the issue is that my bot isn’t registered in Bot Framework. When I go to https://dev.botframework.com/bots there are no bots listed. I have double checked all my appsettings.json values and they are all correct. Note this is for a single tenant app. Any help would be appreciated.
I am getting the following error when trying to test my bot in “Test in Web Chat”: 2024-06-13 19:11:30.809 +00:00 [Error] Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID “xxxxxxxxxxxxxxxxxxxxx”, Request ID “xxxxxxxxxxxxxxxxxxxxxxxxx”: An unhandled exception was thrown by the application.System.AggregateException: Failed to acquire token for client credentials. (AADSTS700016: Application with identifier ‘xxxxxxxxxxxxxxxxxx’ 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. It seems as though the issue is that my bot isn’t registered in Bot Framework. When I go to https://dev.botframework.com/bots there are no bots listed. I have double checked all my appsettings.json values and they are all correct. Note this is for a single tenant app. Any help would be appreciated. Read More