Authentication problem with Visual Studio2017 and Hololens2

Kyuwoon Kim/Media Standard TP 0 Reputation points
2024-12-26T08:14:13.0533333+00:00

I'm developing Hololens2 again these days, but when I deploy in Visual Studio, it always shows DEP6957 error and doesn't proceed.

There may be a build or connection-related problem, but since it's something I've been using for a long time and suddenly doesn't work, it seems like there's a problem with the recent Visual Studio or Hololens2 updates.

In Visual Studio

Visual Studio Menu - Debug - Other Debug Target - Debug Installed Package

and select/search Hololens from Remote Machine,

A pop-up window saying "Exception of type 'System.ArgumentException' was thrown."

I think that there's a problem with authentication between Visual Studio and Hololens before the build.

I've tried many things like reboot/reinstall/change Wifi from/to USB /direct IP input/developer mode and etc. to solve DEP6957, but there has been no progress.

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.
406 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ying Li - MSFT 1,300 Reputation points Microsoft Vendor
    2024-12-26T09:49:42.85+00:00

    Hello, Welcome to Microsoft Q&A,

    Please ensure that you use the recommended version of Visual Studio 2022 along with the necessary workloads and components. For installation checklist, please see - Install the tools - Mixed Reality | Microsoft Learn.

    If you have installed Visual Studio 2022 and the necessary workloads and components, but the issue still persists, this authentication issue could result from the following:

    1. Your PC and HoloLens are not connected to the same WIFI while using remote connection.
    2. Your PC is not 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. (Note: Only if the compilation option is Master or Debug will be prompted for a PIN.)

    Don’t hesitate to let me know if you have any further questions about this issue, and if you have any questions about deployment, you can also refer to Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn.


    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.

    0 comments No comments

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.