代码之家  ›  专栏  ›  技术社区  ›  Nitin Rastogi

无法连接到远程调试-Web应用Azure

  •  15
  • Nitin Rastogi  · 技术社区  · 9 年前

    我正在尝试远程调试Asp。Net核心Web应用程序(带有Web API)项目作为Azure应用程序服务与Visual Studio 2017 Professional一起部署。

    遵循记录的说明 here

    firewall 步骤。

    尽管有这些设置,我还是遇到了以下错误

    System.Runtime.InteropServices.COMException (0x89710023): Unable to connect to the Microsoft Visual Studio Remote Debugger named 'essamplepoc2.azurewebsites.net'.  The Visual Studio 2017 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.
       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)
    

    任何建议都会有帮助。

    4 回复  |  直到 6 年前
        1
  •  9
  •   Alireza Sattari    6 年前
        2
  •  7
  •   Marius Stănescu    8 年前

    我也有这个问题。当我试图从64位机器上调试时,我通过在应用程序设置中将平台从32位更改为64位来解决这个问题。

    Screenshot

        3
  •  1
  •   Erwin Damsma    9 年前

    在中打开应用程序服务 Azure portal 然后转到 应用程序设置 远程调试 到 在…上 Visual Studio版本 .

    它应该是这样的: enter image description here Screenshot source

    我希望这有帮助。

        4
  •  0
  •   GTuccio    5 年前

    首先,什么不起作用。在防火墙中打开端口对我来说不起作用。重新启动本地计算机不起作用,在Azure中重新启动应用程序也不起作用。我一直得到:

    System.Runtime.InteropServices。COMException(0x89710023):无法连接到名为“empirepipedriveapi newversion.azurewebsites.net”的Microsoft Visual Studio远程调试器。与远程终结点的连接已终止。