'Deployment from unity to Hololens 2 giving error DEP6957

Goal:

Deploying an application from Unity to Hololens 2


Problem:

Yesterday every deployment i did worked correctly. But today when i tried to deploy a new version of my application to the hololens I'm getting the following error. (Picture with the error i receive) My build was succesfull but the deployment not.

In the following image you see the settings i used for the deployment. My machine name is the IP address of the hololens. (Settings to deploy to hololens2). I also enabled the developer settings on the device itself.


I already shut down the hololens en tried again to deploy but this didn't work either. I created a new build but that was not the solution.


Do any of you know what I need to do to fix this?

Thanks in advance



Solution 1:[1]

Please go to your project property window -> debugging -> Machine name. Click the dropdown button, and select <Locate...> enter image description here

In the next pop-up window, you should see the HoloLens in your network, select it and click the Select button. enter image description here

Then try deploy your app again.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Billy Liu - MSFT