【发布时间】:2017-12-12 02:52:29
【问题描述】:
我正在尝试使用 Visual Studio 2017 Professional 远程调试作为 Azure 应用服务部署的 Asp.Net Core Web 应用程序(使用 Web API)项目。
按照here 中记录的说明进行操作。本质上,使用 Server Explorer-->App Service-->Attach Debugger
此外,如前所述,启用必要的防火墙端口。我打开的是TCP(4022、4023)和UDP(3702)。此外,请确保远程调试器应用程序位于 Windows 防火墙中允许的应用程序列表中。 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)
任何建议都会有所帮助。
【问题讨论】:
-
你能解决这个问题吗
标签: remote-debugging azure-web-app-service azure-api-apps