gpt4 book ai didi

azure - 如何远程调试Azure Web应用程序槽

转载 作者:行者123 更新时间:2023-12-03 03:03:50 30 4
gpt4 key购买 nike

我非常有效地使用 Azure 远程调试我的 Web 应用程序。然而,在产品中,我们正在使用部署槽,而我们的暂存槽导致了一些错误,需要进行调试。我的一些团队成员尝试远程调试它,但是当他们连接时,它产生了以下错误:

System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'mysite123prod-staging.azurewebsites.net'. The connection with the remote endpoint was terminated.

at Microsoft.VisualStudio.Debugger.Interop.Internal.IDebuggerInternal120.ConnectToServer(String szServerName, VsDebugRemoteConnectOptions[] pConnectOptions, CONNECT_REASON ConnectReason, Int32 fIncrementUsageCount, IDebugCoreServer3& ppServer) at Microsoft.VisualStudio.Web.Azure.MicrosoftWeb.Operations.RemoteDiagnosticsSessionBase.ConnectToServer(String site, String user, String password)

这可以在 Azure 中完成吗?如果可以,如何实现?

最佳答案

导致此问题的可能原因有很多。

  • 您可能已关闭计算机上的防火墙。
  • 检查 Azure Web App 上的远程调试是否设置为开启位于门户中,并且具有正确的 Remote Visual Studio 版本。
  • 如果此方法之前运行良好,您可以删除该网络应用程序并重新发布一次。您可能还想打开以下端口检查是否可以解决您的问题。 enter image description here

更多详情请参阅Configure the Windows Firewall for Remote DebuggingRemote Debugging Errors and Troubleshooting .

关于azure - 如何远程调试Azure Web应用程序槽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46336028/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com