SkypeForBusinessBot icon indicating copy to clipboard operation
SkypeForBusinessBot copied to clipboard

Exception thrown: 'Microsoft.Bot.Connector.MicrosoftAppCredentials.OAuthException' in mscorlib.dll

Open nmsohn opened this issue 7 years ago • 2 comments

My bot builder is the latest version. The code breaks here: await postToBot.PostAsync(activity, CancellationToken.None);

Is there something that I need to make a change in the activity object?

Activity activity = new Activity()
{
From = new ChannelAccount { Id = fromId, Name = fromId },
Conversation = new ConversationAccount { Id = conversationId },
Recipient = new ChannelAccount { Id = "Bot" },
ServiceUrl = "https://skype.botframework.com",
ChannelId = "skype",
ChannelData = SendMessageUrl 
};

nmsohn avatar Dec 20 '17 00:12 nmsohn

Left at the same status. I am wondering if it has to do with BotApp ID registration. Do I have to create my won bot on Azure and use the ID and Bot here to continue ?

KiranBastawadi avatar Jan 16 '18 11:01 KiranBastawadi

Yes you would need to register the bot and put correct Microsoft app id and secret in the config.

ankitbko avatar Jan 17 '18 04:01 ankitbko