BotFramework:漫游器的MSA appId或密码不正确 [英] BotFramework: The bot's MSA appId or password is incorrect
本文介绍了BotFramework:漫游器的MSA appId或密码不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题:使用模拟器时,Bot开始向我显示错误.虽然我不确定,但我认为模拟器可能已更新
Issue: Bot started showing me an error, when using the emulator. While i am not sure, i think the emulator might have been updated
调试,我检查了AppID和密码是否正确.
Debugging I checked that the AppID and secret are correct.
错误:
-> POST 401 [conversationUpdate]
Error: The bot's MSA appId or password is incorrect.
Edit your bot's MSA info
web.config信息:
<!-- update these with your appid and one of your appsecret keys-->
<add key="MicrosoftAppID" value="XXXXXXXXXXXXXX" />
<add key="MicrosoftAppPassword" value="YYYYYYYYYY" />
<!--Azure Credentials (V1 Authentication Mode) -->
<add key="ActiveDirectory.Mode" value="v1" />
<add key="ActiveDirectory.ResourceId" value="https://graph.windows.net/" />
<add key="ActiveDirectory.EndpointUrl" value="https://login.microsoftonline.com" />
<add key="ActiveDirectory.Tenant" value="ZZZZZZZ" />
<add key="ActiveDirectory.ClientId" value="aaa" />
<add key="ActiveDirectory.ClientSecret" value="bbb" />
<add key="ActiveDirectory.RedirectUrl" value="http://localhost:25601/api/OAuthCallback" />
推荐答案
在本地调试时,请在web.config文件和仿真器中将Microsoft APP ID和Microsoft App Password值保留为空.
Keep the Microsoft APP ID and Microsoft App Password values empty both in web.config file and the emulator when debugging locally.
并在web.config中:
and in the web.config:
<configuration>
<appSettings>
<!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
<add key="BotId" value="YourBotId" />
<add key="MicrosoftAppId" value="" />
<add key="MicrosoftAppPassword" value="" />
</appSettings>
这篇关于BotFramework:漫游器的MSA appId或密码不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文