uwp

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.


Solution

  • 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