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

Viewed 5977

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.

2 Answers

I got the same error. The problem disappeared when I changed the platform to x86 (or x64) in Visual Studio's configuration manager.

enter image description here

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

Related