Error DEP6957: Failed to connect to the device "127.0.0.1" using "Universal Authentication".

baoting li 0 Reputation points
2025-02-19T07:01:04.3966667+00:00

The error encountered during the deployment process via Visual Studio is translated into English as follows:

Error DEP6957: Failed to connect to the device "127.0.0.1" using "Universal Authentication". Please verify that the correct remote authentication mode is specified in the project debugging settings. COMException - Exception from HRESULT: 0x801C0003 [0x801C0003] 800

This error indicates that there was a failure to establish a connection to the local machine (127.0.0.1 is the loopback address, typically used for local connections) using a general or universal authentication method. It suggests checking the project's debugging settings to ensure the correct remote authentication mode is set up. Additionally, the HRESULT value provided is associated with a COM (Component Object Model) exception.

HoloLens
HoloLens
A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.
1 question
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
408 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ying Li - MSFT 1,305 Reputation points Microsoft Vendor
    2025-02-20T06:14:46.4533333+00:00

    Hello, Welcome to Microsoft Q&A,

    Do you deploy via USB? Please ensure the following requirements are met:

    1. USB Device Connectivity is installed on VS.
    2. Your PC is paired with HoloLens via Visual Studio. The first time you deploy an app from Visual Studio to your HoloLens, you'll be prompted for a PIN. 

    Additionally, please ensure that your development environment is Visual Studio 2022. For the details of deployment, you can refer to Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn.

    Please don’t hesitate to let me know if you have any further questions.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.