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

时间:2017-09-21 05:23:41

标签: azure azure-web-sites azure-web-app-service

我非常有效地使用了Azure远程调试我的网络应用程序。但是,在prod中,我们正在使用部署插槽,我们的暂存插槽会导致一些错误,需要进行调试。我的一些团队成员尝试远程调试它,但是当它们附加时,它产生了以下错误:

  

System.Runtime.InteropServices.COMException(0x89710023):无法执行   连接到名为的Microsoft Visual Studio远程调试器   ' mysite123prod-staging.azurewebsites.net&#39 ;.与...的联系   远程端点已终止。

     

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

这可以在Azure中完成,如果是这样,怎么做?

1 个答案:

答案 0 :(得分:1)

这个问题可能有很多原因。

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

有关详细信息,请参阅Configure the Windows Firewall for Remote DebuggingRemote Debugging Errors and Troubleshooting

相关问题