Forum Discussion
mattphillips
Jul 21, 2022Copper Contributor
Self hosted Bot works in bot framework but not within Teams
I created my bot via this guide and I'm hosting it within IIS. I have the blazor tab page working correctly and can see logs being generated to show the bot is being called.
I've put it through the bot framework V4 program and I get responses and can see the activity cards being sent, however once I publish to the Teams Dev Portal and load it within teams nothing happens. I get a basic log file as below.
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: \\"server"\WebSites\"appName"\
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
I'm at a loss of where to go next with this bot, the config and manifest files seem correct to me but something isn't right if it still doesn't work within Teams itself. If more logs are needed let me know
- Meghana-MSFTMicrosoftWe are looking into this issue, we will get back to you.
- Keshav-MSFTMicrosoft
mattphillips Hi please share with Repo step and also let us know where you are able to run the bot without any issue.
- ChetanSharma-msftMicrosoftmattphillips - You need to configure bot registration settings.
Please refer this documentation: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-manage-settings?view=azure-bot-service-4.0&tabs=userassigned
If you are using IIS, how are you adding the messaging endpoint for your application.
Also, you need to enable Teams channel in Azure bot to work your bot in Teams.
Reference doc: https://docs.microsoft.com/en-us/azure/bot-service/bot-service-manage-channels?view=azure-bot-service-4.0- Keshav-MSFTMicrosoftmattphillips Could you please confirm if your issue has resolved with above suggestion or still looking for any help?