Self hosted Bot works in bot framework but not within Teams

Copper Contributor

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

8 Replies
We are looking into this issue, we will get back to you.

@mattphillips  Hi please share with Repo step and also let us know where you are able to run the bot without any issue.

@mattphillips - 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-servic...

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-servic...
@mattphillips Could you please confirm if your issue has resolved with above suggestion or still looking for any help?
@Keshav-MSFT I've put at ticket through the Microsoft 365 support as the responses here did not help as I'm not using an azure bot and the links given follow a different documentation to what I've been using so it doesn't seem to apply to my issue.
Hello @mattphillips - Can you please share the error logs that you are getting after uploading the app in Teams Web/browser client ?

You can refer below doc to get the error logs:
https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/developer-tools


Hello @mattphillips - Hope you are doing well !!
Can you please share the error logs, so that we can further investigate on your issue ?

@ChetanSharma-msft 

Apologies for the delay, I believe this is what you wanted? This is the log of me opening the chat with my bot and typing welcome