Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.3.0b1
2019.1.0a1
2019.1.0a14
2019.2.0a1
Issue ID
1124168
Regression
Yes
[Microsoft] 'Build and Run' Deployment fails on HoloLens that is attached via USB
How to reproduce:
1. Create a new Unity project (or open the attached one)
2. In Build Settings
- Make sure the Target Platform is set to UWP
- Target Device - HoloLens
- Architecture - x86
- Visual Studio Version - Visual Studio 2017
- Build and Run on - USB Device
- Development Build, Script Debugging, Wait For Manager Debugger - all enabled
3. Attach a HoloLens device to the computer via USB
4. 'Build and Run' the project
Expected result: The project is successfully built and deployed on the attached HoloLens device.
Actual result: Build fails with deployment failure (see the error message below).
Reproducible with - 2018.3.0b1, 2018.3.7f1, 2019.1.0b5, 2019.2.0a6
Error thrown:
-----------------------------------------------------------------------
BuildFailedException: Deployment failed.
Output:[10:00:34.000] Windows Phone Player Runner started.
[10:00:34.009] Connecting to device.
[10:00:34.015] An error occurred while running: Could not load file or assembly 'Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
at Microsoft.SmartDevice.Connectivity.DatastoreManager..ctor(DatastoreConfiguration configuration)
at Microsoft.SmartDevice.Connectivity.DatastoreManager.Get(Int32 localeId)
at Microsoft.SmartDevice.Connectivity.Wrapper.ConnectivityWrapper12.GetCurrentPlatform(Int32 localeId)
at WindowsPhonePlayerRunner.Program.GetDevice()
at WindowsPhonePlayerRunner.Program.Run(String appxPath, RunnerFlags runnerFlags, IEnumerable`1 copyFilesTo)
at WindowsPhonePlayerRunner.Program.Main(String[] args)
[10:00:34.015] Exiting Windows Phone Player Runner.
-----------------------------------------------------------------------
Comments (3)
-
Arsineh
Jan 29, 2022 20:08
2022, having precisely the same issue.
-
ChargAR
May 13, 2021 19:33
It is 2021 and they still not going to fix the best easy way of deployment... QWQ
-
JulienNesme
May 25, 2020 17:46
Hi,
May I ask what is the solution then to deploy unity app to hololens ? Or is it just that Unity is not compatible with Hololens anymore ?
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (2019.3.X):
After discussing further with Microsoft, we are not going to be able to fix this. They have been unable to provide us with an alternate API we can use here. It seems the previous API we are using is no longer supported on HoloLens.