Cannot deploy UWP app to raspberry pi 3

2019-08-17 18:47发布

问题:

I'm getting an error :

Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named 'minwinpc'. 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.

I'm trying to deploy an app to my RPI 3 running Windows 10 IoT Core v.10.0.16299.15.

I've tried:

  • Reinstalling Visual Studio 2017
  • Installing Visual Studio 2017 Remote Debugger.
  • Restarting the VS.

I noticed that Visual Studio 2015 remoter debugger is running on raspberry pi and it has 192.168.0.6:8116 as a remote machine name while in VS2017, rpi's address is 192.168.0.6:4002. Why are they different? Can someone help me?

回答1:

As Martin & Belekz mentioned,you can check the configuration of target device and firewall setting.And more,I want to add that,please note the configuration of Authentication Mode.You should set it as "Universal(Unencrypted Protocol)".Use the mode whenever you are deploying to a remote device. Currently, this is for IoT devices, Xbox devices, and HoloLens devices, as well as Creators Update or newer PCs.



回答2:

Look at my post here i have the same problem and i tried several things, but only after i done this i can deploy remotely to pi again:

  • Uninstall old 16299 SDK and download new 16299 SDK from here
  • Repair VS from VSInstaller
  • run sfc /scannow

Also make sure you're using Universal authentication mode and type the ip without port number (or even using 'minwinpc' is enough)

hope this helps



回答3:

I never deployed software from VS to a RPi using an port in the IP address before. So maybe you are doing something special, or I'm doing something basic, but;

  1. dubble check if you need to assign a port.
  2. Start Windows 10 IoT Core Dashboard and check if the Pi is visible in your network.

    --> If not, try to ping to your Pi, using the CMD

    ping 192.168.0.6
    

    --> If the ping fails, check your IP address of your Pi with a physical monitor.

  3. Check the address in the build properties according to the steps above.

Hope this helps!



回答4:

You can configure the remote debugger's IP address and port to point to the correct endpoint of your Remote debugger.

Right-click the UWP app project, choose Properties, and in Debug tab you will see Start options with Target device which should be set to Remote Machine and below you can manually enter the Remote debugger's IP address and port into the Remote Machine field (192.168.0.6:8116 in your case). You should include the 8116 port in the Remote Machine field as well.

This should make Visual Studio connect to the Remote debugger instead of the RPI itself.

Also try to turn off the firewall to verify if it does not interfere with the connection.



回答5:

i have see same problem in my laptop. i solve this problem by following steps..

first of all can you install Windows 10 IOT SDK in your .net?

if no then first of all download and install. otherwise update vs 2017.

when install vs 2017 then automatically install iot sdk.