错误:机器人的MSA appId或密码不正确

时间:2017-12-19 06:59:20

标签: azure visual-studio-2017 bots botframework

您好我在Bot框架中工作,因为我在将本机bot发布到azure后在本地bot模拟器中测试机器人时遇到了问题,而在bot模拟器中我提供了已发布的url和Microsoft appid机器人模拟器中的微软秘密。当我连接到azure时,它会显示如下问题。

Command failed: 4294967295 System.AggregateException: One or more errors occurred. ---> System.Exception: Couldn't acquire lock, is another instance running at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut) at Squirrel.UpdateManager.<acquireUpdateLock>b__32_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) at Squirrel.Update.Program.Main(String[] args) ---> (Inner Exception #0) System.Exception: Couldn't acquire lock, is another instance running at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut) at Squirrel.UpdateManager.<acquireUpdateLock>b__32_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<--- {} 

POST 401 [conversationUpdate]

  

POST 401 [conversationUpdate]

     

错误:机器人的MSA appId或密码不正确。

     

编辑机器人的MSA信息

     

POST 401 [conversationUpdate]

     

错误:机器人的MSA appId或密码不正确。

     

编辑机器人的MSA信息

enter image description here

我删除了应用ID和密码,并试图在本地运行它然后它正常工作。

我在互联网上进行了研究,找不到任何可以解决我问题的解决方案。请帮忙。

先谢谢

2 个答案:

答案 0 :(得分:0)

您可以尝试在机器人模拟器中使用http://localhost:3979/api/Messages但不要输入任何类型的ID和密码,并将其从web.config

中删除

如下图所示:

enter image description here enter image description here

点击ctrl + f5然后尝试。它将开始在您的本地环境中工作。

对于远程调试,您需要使用ngork。

如果您需要更多说明,请告诉我。

答案 1 :(得分:0)

显然,模拟器只允许测试本地机器人,不适用于已发布/托管的机器人。对于已发布,我正在通过“在线聊天测试”功能

直接在Azure上进行测试