Jack
Jack

Reputation: 427

HoloLens error: "There were deployment errors. Continue?"

I'm trying to deploy an application I built in Unity to the HoloLens 2 by following this tutorial.

Here are the build settings I entered in Unity. Build settings in Unity

When I go to deploy the application by selecting "Master", "ARM64", "Device" and then "Start without debugging" in Visual Studio I get this error "There were deployment errors. Continue?". If I select yes then I get the below error:

Error DEP6957: Failed to connect to device '127.0.0.1' using Universal Authentication. 
Please verify the correct remote authentication mode is specified in the project debug settings.
COMException - Error HRESULT E_FAIL has been returned from a call to a COM component.
[0x80004005] XamlControlsGallery

I have the Microsoft HoloLens portal open and logged in to the HoloLens, both the laptop and HoloLens are on the same WiFi.

I've tried:

Upvotes: 0

Views: 1410

Answers (2)

Jack
Jack

Reputation: 427

I eventually got this to work by following these steps:

  1. Make sure the build settings in Unity are the same as the settings you will use in Visual Studio except that the device setting should be "Local machine".
  2. In Visual Studio, select "Remote Machine".
  3. After opening the project in Visual Studio, select Edit > Project > Properties > Configuration Properties > Debugging and enter the IP address for the device.

Upvotes: 0

Hernando - MSFT
Hernando - MSFT

Reputation: 2900

To deploy to HoloLens over Wi-Fi, please select "Remote Machine" instead of "Device" in the deployment target drop-down menu. And then, go to Project > Properties > Configuration Properties > Debugging, and enter the IP address of your device in the Address or Machine Name field, more information please see: Deploying a HoloLens app over Wi-Fi

Upvotes: 0

Related Questions