Uwp WinIot Core v.10.0.16299.15-RP3-Microsoft Visual Studio远程调试器,MSVSMON未运行

Uwp WinIot Core v.10.0.16299.15-RP3-Microsoft Visual Studio远程调试器,MSVSMON未运行,uwp,visual-studio-2017,windows-10-universal,remote-debugging,windows-10-iot-core,Uwp,Visual Studio 2017,Windows 10 Universal,Remote Debugging,Windows 10 Iot Core,这不是我在Pi上与WinIoT合作的第一个项目。从WinIot映像的第一个版本开始,我就一直在使用它。我决定将我所有的PI更新为最新的WinIoT映像。My VS已更新至2017 15.15.2的最新版本 当我转到远程调试我的应用程序时,它在部署过程中失败,并出现以下错误: 1>Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '[iphere]'. The Visual Studi

这不是我在Pi上与WinIoT合作的第一个项目。从WinIot映像的第一个版本开始,我就一直在使用它。我决定将我所有的PI更新为最新的WinIoT映像。My VS已更新至2017 15.15.2的最新版本

当我转到远程调试我的应用程序时,它在部署过程中失败,并出现以下错误:

1>Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '[iphere]'.  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.
因此,我转到WinIot映像,单击启动远程调试器,它返回以下文本:

所以,我遵循上面列出的链接,它基本上只是关于如何做我正在做的事情的说明。。。没错

我在这上面花了好几个小时,却一事无成。看起来微软现在已经安装了它的远程调试器,但是由于某种原因它不能工作

调试配置文件:

我检查过的东西:

关闭Windows防火墙 重新安装WinIot映像以重新启动 启动了一个新的UWP项目,其中没有代码 将生成详细信息设置为高,但在生成上没有问题,只有部署 使用windows powershell命令将WinIoT映像添加到我的受信任主机 能够使用PowerShell远程登录,没有问题。 在我的电脑上禁用IPv6 ping在ping主机名时显示IPv6 我注意到的事情:

当我第一次能够让它工作时,我看到MSDN上的说明显示了用于身份验证的通用性-当我从可用Pi3列表中选择时,它会在某一点上将其移回“无”,我能够使用“无”进行部署和调试,但现在即使这样也不起作用。 MSDN联机指令似乎与无法再运行的命令(如如何启动远程调试器)一起过时- 似乎找不到一种方法来打开远程调试器并手动启动它,如果这样做可行的话 我觉得,因为我以前能够做到这一点,在上周的这个图像版本中,一定有一些环保的东西,但我已经用尽了我的时间试图弄清楚,我宁愿编码,而不是调试调试过程


非常感谢您的帮助

不应在现代Windows中禁用ipv6。在XP时代,它可能是可以接受的,但现在它真的会把你的系统搞得一团糟。有关详细信息,请参阅并重新启用它。 如果可能的话,在你的树莓皮上画一个新的图像。 然后,您应该清除用户配置文件上的缓存凭据,打开命令提示符并键入:

rundll32.exe keymgr.dll, KRShowKeyMgr
如下图所示,您应该使用minwinpc或设备的主机名/ip地址删除所有内容

接下来,您需要使用从下载的模板之一创建一个新的虚拟物联网项目

现在右键单击项目并选择“属性”

输入调试信息,如下所示。它应该使用未加密的协议

单击远程Windows调试器

手术需要一段时间

最终它会超时这没关系

检查以确保已部署应用程序

如果未部署应用程序,则您的电脑/vs配置存在更多问题,需要修复。修复此问题的最快方法是,但您只能在万不得已的情况下执行此操作,因为您必须重新导入浏览器收藏夹、网络驱动器和电子邮件设置

假设虚拟解决方案的部署成功,然后使用powershell连接到设备并发出以下命令

cd c:\data\users\defaultaccount\appdata\local\developmentfiles\vsremotetools
netsh advfirewall firewall add rule name="Remote Debugging TCP Inbound" dir=in action=allow protocol=TCP localport=4022
netsh advfirewall firewall add rule name="Remote Debugging TCP Inbound" dir=in action=allow protocol=TCP localport=4023
netsh advfirewall firewall add rule name="Remote Debugging UDP Inbound" dir=in action=allow protocol=UDP localport=3702
(Start-Process -FilePath "xcopy" -ArgumentList "*.* c:\temp\rdbg /y /s /i /d /h" -Wait -Passthru).ExitCode
(Start-Process -FilePath "c:\temp\rdbg\arm\msvsmon.exe" -ArgumentList "/silent /nostatus /nosecuritywarn /nofirewallwarn /noclrwarn" -Wait -Passthru).ExitCode
如果按如下所示浏览到,您应该会看到msvsmon正在运行

现在,这一次,将VisualStudio项目中的远程调试设置更改为Windows身份验证


然后单击“开始远程调试”

,这看起来像是一个稍旧的永利物联网版本。你在刚刚发布的新版本上尝试过这个过程吗?只是好奇为什么你的屏幕截图中的用户界面不同。。我的屏幕截图是这样的:我已将屏幕截图更新到16299 ui。我有一个我遵循的程序,它是从10586发展而来的,这就是为什么老截图会出现的原因。。解决方法简单得多。把这个加进去,我会记下你的答案。。。你能建议我做什么吗。。。您的解决方案不适合我:
cd c:\data\users\defaultaccount\appdata\local\developmentfiles\vsremotetools
netsh advfirewall firewall add rule name="Remote Debugging TCP Inbound" dir=in action=allow protocol=TCP localport=4022
netsh advfirewall firewall add rule name="Remote Debugging TCP Inbound" dir=in action=allow protocol=TCP localport=4023
netsh advfirewall firewall add rule name="Remote Debugging UDP Inbound" dir=in action=allow protocol=UDP localport=3702
(Start-Process -FilePath "xcopy" -ArgumentList "*.* c:\temp\rdbg /y /s /i /d /h" -Wait -Passthru).ExitCode
(Start-Process -FilePath "c:\temp\rdbg\arm\msvsmon.exe" -ArgumentList "/silent /nostatus /nosecuritywarn /nofirewallwarn /noclrwarn" -Wait -Passthru).ExitCode