2

I'm getting the following error when attempting to run a Windows Phone 8 app in the Windows Phone 8 emulator (via Visual Studio 2012):

Windows Phone Emulator wasn't able to ensure the virtual machine was running

The Windows Phone Emulator wasn't able to ensure the virtual machine was running:

Something happened while starting a virtual machine: 'Emulator 720P.joel' could not initialize. (Virtual machine ID 7320013C-0597-4408A-9CCF-049166CE9926)

There's no other indication on what might be causing this problem. I have ensured the following:

  • I'm running Windows 8.1 Pro x64
  • I'm on a machine that supports SLAT (It's a Core i5)
  • There's no other virtualization software installed or running, other than Hyper-V
  • I've tried cleaning the existing switches from Hyper-V using XdeCleanup.exe, with no luck
  • I've tried uninstalling and re-installing both the Windows Phone 8 SDK and Hyper-V. Neither helped.
  • The Windows Event Log reports no errors with regards to Hyper-V or starting the emulator
  • I've tried reducing the processor count on the VM to 1 processor (from the default of 2). No effect.

At one point in the past (a few months ago), the emulator was working. It was around that time that I got a Windows Phone 8 device, so I started developing it. I've been wanting to test a few things out on the emulator rather than having to use my actual phone. The only thing that I can think of that changed since then, was that I upgraded from Windows 8 to Windows 8.1.

Does anyone here have any idea what might be happening, or know of anywhere else I can look for any hints on what might be the problem?

Joel B
  • 637
  • 1
  • 8
  • 25
  • Have you installed all the updates for VS 2012? In update 3, there were many issues fixed with Win 8.1 compatibility. There were also many phone tool updates. The latest update is VS 2012 Update 4. – Scott Wylie Jan 21 '14 at 17:58
  • Yes, Visual Studio is running the latest updates. – Joel B Jan 21 '14 at 18:10
  • Have you solved this? – Nic Jul 05 '16 at 19:32
  • This was so long ago, I don't even remember if I got it working! I haven't done any Windows Phone 8 development in roughly 2 years. Sorry that isn't much help. :( – Joel B Jul 06 '16 at 14:13

5 Answers5

1

Well I can't say this will work for everyone but for me it was a matter of simply turning off windows firewall.

I had checked all other settings (BIOS, SLAT, etc) and even uninstalled/installed the Hyper-v feature but Hyper-V had been working fine. In fact I could open and run the emulator - just could connect from VS. Once I turned the firewall off everything worked.

You would think you could establish a range of ports to use but who knows what they would be?

user646306
  • 483
  • 1
  • 5
  • 15
0

I had the same issue and even now it, when I disable my wireless actually totally remove wireless lan and disable my bridged networks. Everything works fine. Please also make sure that internet sharing is not enabled on LAN.

ARH
  • 1,300
  • 2
  • 19
  • 43
  • Interesting. I'm working on a desktop, and don't have a wireless dongle connected. If I remove all the virtual switches in Hyper-V, the next time I attempt to run the emulator, it regenerates them. Sharing is not enabled on the LAN. – Joel B Jan 21 '14 at 18:15
  • look for this http://stackoverflow.com/questions/19271073/unable-to-launch-windows-phone-emulator – ARH Jan 22 '14 at 04:20
  • In that case, the person was running the emulator in a VM (essentially a VM within a VM), which I'm not. There's no additional info on why it is failing. I've also already tried changing the processor count to 1, to no avail. – Joel B Jan 22 '14 at 15:53
  • I am also facing the same problem. Please visit to following issue. http://stackoverflow.com/questions/21431680/windows-phone-8-emulator-is-not-running-it-was-running-before-uninstall-the-ora – Ashish-BeJovial Feb 03 '14 at 05:45
0

that mean that you don't have insufficient RAM to be able to start your Emulator. try to stop some running programs or services. and try again

Alaeddine
  • 1,288
  • 2
  • 20
  • 43
  • Nope. Task Manager is still showing 5.1 GB available. I'm on a machine with 8 GB of ram, and even while trying to start the emulator, it's still showing 5.1 GB available. – Joel B Mar 04 '14 at 20:47
  • ok. try to delete all Networks in Hyper-V and start your Emulator from Visual Studio again. – Alaeddine Mar 08 '14 at 00:39
0

I had the same problem and I solved it as follows:

First disable the LAN connection. This can be done by going to Control panel > Internet Properties > Connections > LAN Setting > Remove the tick mark(deselect auto-detect setting) Press OK.

If any anti-virus is installed, then disable the firewall.

Then go to Hyper-V manager and delete all emulators present. Restart your emulator and it will work.

cf stands with Monica
  • 7,919
  • 8
  • 29
  • 56
Dipitak
  • 77
  • 1
  • 1
  • 3