deploymentuwpvisual-studio-2019hololenswindows-mixed-reality

Error when deploying solution to HoloLens 2


I want to develop for the HoloLens 2. To learn how to setup everything and how to deploy an app, I followed this youtube tutorial: https://www.youtube.com/watch?v=BymWq0vzBhM. However, when I try to deploy my solution, I get the following error:

DEP6957: Failed to connect to device '127.0.0.1' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. COMException - No connection could be made because the target machine actively refused it. (Exception from HRESULT: 0x8007274D) [0x8007274D]

The Hololens 2 is turned on and connected with a USB cable to the PC and shows up in the device manager under portable devices. Developer mode is turned on the HoloLens 2.

This is the detailed description of my steps:


Solution

  • check if "USB device connectivity" is installed in the VS installer. If not, install it and try deploying again. enter image description here