I encountered some problems while trying to start a Windows Phone Emulator from within Visual Studio 2012. In a WP8 project, after starting a debugging session, during the emulator loading, one of the following errors raised:
The Windows Phone Emulator wasn’t able to connect to the Windows Phone operating system:
The emulator couldn’t determine the host IP address, which is used to communicate with the guest virtual machine.
Some functionality may be disabled.
The Windows Phone Emulator wasn’t able to create the virtual machine: Something happened while creating a switch: Xde couldn’t find an IPv4 address for the host machine.
The WP8 app did not start, all I could see was the main tiled page of the emulated phone. Additionally, Visual Studio reported an error: “Invalid pointer“.
In order to solve this issue, follow this check list:
- Does your hardware support virtualization? Have you enabled it in BIOS?
- Are you running Windows 8 64-bit (x64) client version? It needs to be 64bit.
- Do you have any kind of other networking/virtualization software installed (VirtualBox, VPN software)? If you do, you might have to remove it to get the emulator work.
- Have you tried clearing the existing switches from Hyper-V manager and creating a new one? (run XdeCleanup.exe, is located in C:Program Files (x86)/Microsoft XDE/8.0)
Enjoy your work!