简体   繁体   中英

The bot encountered an error or bug. To continue to run this bot, please fix the bot source code

I am a newbie in Azure BOT development. I am trying to run a sample source code in the following GitHub repo ( Developed in .net core 3.1 C# ). https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-proactive-installation/csharp

I had configured the MicrosoftAppId , MicrosoftAppPassword , TeamsappcatalogAppId values in the appsettings.json file. ngrok was already configured successfully. When I try to connect the BOT with the emulator the source throws an exception like the below image.

exception.Message = "Value cannot be null. (Parameter 'key')"

在此处输入图片说明

Then it will throw the error message

在此处输入图片说明

I have no idea what I am missing in the configuration.

This is custom Bot sample created for Teams, I don't think it will work on all the channels eg, Emulator/WebChat etc.

I think you should try running it on Teams itself. Also make sure that you have configured the Teams Channel on Azure Bot Service.

You can refer this link for available Bot SDK samples.

I am getting this error in a emulator as well as in Microsoft Teams. Can you say what brings this error into a picture?

Screenshot from MS Teams

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM