简体   繁体   English

无法将VS 2017的调试器附加到Web App Bot的Azure App Service

[英]Unable to attach debugger from VS 2017 to Azure App Service for Web App Bot

I have deployed my Bot Framework v4 app as a Web App Bot to Azure. 我已经将Bot Framework v4应用程序作为Web App Bot部署到Azure。 I can connect to it in Web Chat in the Azure Portal, but it is crashing when I message it via Twilio. 我可以在Azure门户的Web聊天中连接到它,但是当我通过Twilio向它发送消息时,它崩溃了。

I am attempting to debug this, but when I try to attach via Visual Studio's Cloud Explorer I get the error in the screenshot. 我正在尝试调试它,但是当我尝试通过Visual Studio的Cloud Explorer进行附加时,在屏幕截图中出现了错误。 I have also tried attaching directly by using the username and password in my publish profile, but that always results in the breakpoints saying the symbols haven't been loaded once it is connected. 我也尝试过使用发布配置文件中的用户名和密码直接附加,但这总是会导致断点,表明连接后就没有加载符号。 When I look at the debug modules, I don't see any pertaining to my bot's dll. 当我查看调试模块时,没有看到与我的机器人的dll有关的任何内容。 This is with the publish profile set to the Debug configuration, so no issue with optimized code. 这是将发布配置文件设置为Debug配置的情况,因此优化代码没有问题。

Any suggestions are greatly appreciated! 任何建议,不胜感激!

截图

I have seen this error during one of my attempts. 在一次尝试中,我已经看到此错误。 I ended up removing the current version of code from the web app by using the Kudu Console, restarting the app service and then publish again from VS using the publish profile. 我最终使用Kudu控制台从Web应用程序中删除了当前版本的代码,重新启动了应用程序服务,然后使用发布配置文件从VS重新发布。

Was able to make some progress on debugging by attaching to SITENAME.scm.azurewebsites.net instead of SITENAME.azurewebsites.net. 通过附加到SITENAME.scm.azurewebsites.net而不是SITENAME.azurewebsites.net,可以在调试方面取得一些进展。

Doesn't explain why Cloud Explorer still can't connect, but at least unblocks me for now 没有说明为什么Cloud Explorer仍然无法连接,但至少现在阻止了我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法将 VS 2017 中的调试器附加到 ASP.NET CORE 2.2.1 应用程序的 Azure 应用程序服务 - Unable to attach Debugger from VS 2017 to Azure app service for ASP.NET CORE 2.2.1 app 无法将调试程序附加到Azure Web服务聊天机器人应用程序 - Cannot attach debugger to Azure Web Service chatbot app Azure Bot服务/无法创建Web App Bot /不支持位置 - Azure Bot Service / Unable to Create Web App Bot / Location not supported 如何在Visual Studio 2017中将调试器附加到Azure Web应用程序? - How do I attach the debugger to an Azure web app in Visual Studio 2017? 无法通过 Visual Studio 将调试器附加到 Azure Linux Web 服务 - Unable to attach debugger through Visual Studio to Azure Linux Web Service 如何使用 Visual Studio 中的路径映射将调试器附加到 Azure 应用服务? - How to attach a debugger to Azure App Service with path mapping in Visual Studio? Azure App Service 和 Web App Bot 之间有什么区别/联系? - Whats the difference / connection between Azure App Service and Web App Bot? 无法从 Visual Studio 2019 社区版附加到 Azure 应用服务 - Unable to attach to Azure App Service from Visual Studio 2019 Community edition 为什么 azure web app bot 中缺少 bot 文件? - Why bot file missing from azure web app bot? Azure QnAMaker Web App Bot与认知服务之间的响应不一致 - Inconsistent response between Azure QnAMaker Web App Bot and Cognitive Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM