'How to resolve "Failed to connect to device '127.0.0.1' using Universal Authentication"?

I keep getting this error everytime I try to deploy my UWP app to my local device.

Severity Code Description Project File Line Suppression State 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] Voip

I have absolutely ZERO idea on how to resolve this, as it seems everyone else that has this issue is trying to connect to a remote device.

uwp


Solution 1:[1]

Make sure your device is connected to your machine.

I had forgotten to plug in my device (hololens 2 in this case).

Solved this error straightaway. It's hard to find something thats not there. :D

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Slug