Visual Studio failed deploy to HoloLens: Error DEP6957 : Failed to connect to device

7

I am having trouble deploying the Hololens Academy module: Holograms (210) to the Hololens device. It will ask for the pin, I enter it and it fails.

I can deploy and run in the emulator just fine.

I can assure that the computers are on the same network and I leave the Hololens on the pairing screen.

Error DEP6957 : Failed to connect to device '172.16.25.29' using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. 0x8007274C: The network event being waited on triggered an error. ModelExplorer

visual-studio-2015
hololens
asked on Stack Overflow Jul 25, 2016 by Rob Allen

9 Answers

4

I restarted the headset, I restarted Visual Studio and even the computer and was still facing the issues.

Eventually I determined that I needed to leave the headset pin window open while pairing and if you enter a bad pin into VS, it is hard to get/find the dialogue to change it.

As a result, I created a new build configuration which triggered the pin window immediately upon build, at which point I opened the pin/pairing dialogue in the headset and entered the pin while leaving the pin dialogue in the headset open until it showed the device as paired.

answered on Stack Overflow Jul 27, 2016 by Rob Allen
1

I ran into a similar issue. I believe this is a bug within the Hololens O/S. I had to completely reboot the Hololens itself and then I was able to deploy again.

I also find that if the Hololens goes to sleep while Visual Studio is open, any future deployments will fail. The only solution for that is to restart Visual Studio.

answered on Stack Overflow Jul 26, 2016 by Cameron Vetter • edited Mar 25, 2021 by Cameron Vetter
1

YMMV, but I've found that there's an easier fix that doesn't involve restarting VS or the HoloLens - open up the project properties, go to the "Debug" tab and edit the "remote machine" IP address. That seems to clear out any cached connection information and gets me past this problem, every time. It's still a pain, but not as much as having to restart stuff.

answered on Stack Overflow May 20, 2017 by JAWZ apps
1

I did some trial and error and it worked for me! Please try the combination of the steps below (in no particular order).

Visual Studio Community Version: 2017 15.6.1

HoloLens OS Version: 10.0.14393.20168

  • Turn on Developer mode on HoloLens and make sure both devices are on same network.

  • Clean your solution in Visual Studio. Redeploy the project and debug again.

  • Uncheck any proxy settings for wifi in your HoloLens. In the Hololens-->Settings-->Network & Internet-->Proxy-->Automatically Detect Settings.

  • Restart VS
  • Restart Hololens
  • In the project settings for Debug operation, the dialog box should automatically detect your Hololens device. If not try entering the IP manually. The manual says "Ask Cortana for your IP address". Dont do that, Cortana gives the Outbound IP and not the local IP. Go to Network & Connections on Hololens and check advanced settings in Wifi and get your IP.

  • Save, Clean and Rebuild solution.

  • Manual reference: - https://developer.microsoft.com/en-us/windows/mixed-reality/holograms_101

answered on Stack Overflow Mar 11, 2018 by Deepak Agrawal • edited Mar 11, 2018 by Deepak Agrawal
0

Once you have paired the device you should not have to re pair the device unless you shutdown visual studio, most of the time, this will happen when the device is sleeping, has not loaded windows or you are not wearing the device, (it knows when you are!) if you have windows loaded it should resolve this issue so long as you have properly paired the device.

answered on Stack Overflow Sep 7, 2016 by Kelso Sharp
0

Make sure:

  1. TO have 'Developer mode' turned on BOTH - Hololens and the Windows 10 PC you are working upon. - This might resolve the Universal Authentication issue

  2. Both are on same network. Organizational networks which require sign-in to access wifi does not help. In that case, prefer USB OR connect to Hotpot created by your PC.

  3. Make sure they are connected by accessing the Hololens portal on web OR by using the app - 'Microsoft Hololens'

  4. Select Remote Machine on VS while running and it should automatically detect it. If not try entering the ip you used to connect to device portal. This may ask for pin which will be shown on Hololens without requiring you to do anything.

answered on Stack Overflow Feb 21, 2018 by Akshay Ayyanchira
0

Unpairing the device and then pairing it again worked for me

answered on Stack Overflow Dec 11, 2018 by Krishna
0

I had this issue and solved it by installing USB Device Connectivity through the individual components section of the visual studio installer. You may also ensure that the associated service is running by using the windows Services tool.

answered on Stack Overflow Jun 5, 2020 by jbat100
0

In my case restarting the HoloLens device and uninstalling the application I wanted to deploy resolved the issue.

answered on Stack Overflow Jul 28, 2020 by LWU

User contributions licensed under CC BY-SA 3.0