Reputation: 2921
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
Upvotes: 10
Views: 19079
Reputation: 1
This message might appear when Visual Studio is not paired with HoloLens 2. Usually, there is a dialog that asks for providing Pin Code from the device but sometimes it doesn't appear. I didn't find settings where it can be changed or overwritten but there is a simple workaround. Change the solution configuration for example from Release to Debug or from Debug to Release, and then try a deployment. In my case VS finally asked me for the Pin Code and then I was able to switch back to Release and deploy without problems. It looks like the Pin Code is shared between all solution configurations.
Upvotes: 0
Reputation: 262
This is what worked for me - on laptop running visual studio:
Then, when trying to deploy from Visual Studio, it asked me for pin again. I could NOT find how to manually edit the pin (in Visual Studio, registry, etc.).
Upvotes: 0
Reputation: 11
In my case, I was trying on the Hololens emulator and I was connected to my company VPN. It was not able to connect to the IP address. I disconnected my machine from VPN and it started working.
Upvotes: 0
Reputation: 747
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.
Upvotes: 2
Reputation: 1
In my case restarting the HoloLens device and uninstalling the application I wanted to deploy resolved the issue.
Upvotes: 0
Reputation: 16827
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.
Upvotes: 7
Reputation: 121
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.
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
Upvotes: 1
Reputation: 141
Make sure:
TO have 'Developer mode' turned on BOTH - Hololens and the Windows 10 PC you are working upon. - This might resolve the Universal Authentication issue
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.
Make sure they are connected by accessing the Hololens portal on web OR by using the app - 'Microsoft Hololens'
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.
Upvotes: 1
Reputation: 11
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.
Upvotes: 1
Reputation: 972
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.
Upvotes: 0
Reputation: 2921
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.
Upvotes: 5