Hololens 2 Emulator HRESULT: 0x80070005 (E_ACCESSDENIED)

BR14Nx 15 Reputation points
2023-02-07T17:48:10.3633333+00:00

I am trying to run the Hololens 2 Emulator on Windows 11 Pro.

All Windows Updates are installed.

Hyper-V is enabled and running.

My GPU, CPU and RAM are definitely sufficient.

Running the Emulator as Administrator is working without any problem, though it is still not working if I deploy a program from Visual Studio 2019 to the Emulator (Release and x86). Launching Visual Studio as Administrator does not work either. I get the same result. Launching the Emulator as Administrator before the deployment also does not work since a new VM will be started. Following this does not help either. I neither do not know what the SID of the VM is (since there is no "Details" button) nor what the ":(F)" stands for (which gives a CommandNotFoundException).

The error message of the emulator is as follows:

[XDE:002] The emulator is unable to verify that the virtual machine is running:

Access denied (Exception of HRESULT: 0x80070005 (E_ACCESSDENIED))

All the suggestions mentioned here did not work either or were not possible.

I also repaired Visual Studio 2019 and reinstalled the Emulator two times.

HoloLens | Development
{count} votes

1 answer

Sort by: Most helpful
  1. BR14Nx 15 Reputation points
    2023-02-16T13:43:17.28+00:00

    I just built to x64 and it is working now (after several installation attempts)

    Documentation says Hololens 2 simulator can be build to via x86 and x64 though.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.