Windows Phone 8 emulator error - Something happene

2019-01-06 09:41发布

I have a similar problem like mentioned in this question:

Unable to create the virtual machine

But, my problem is a bit different in the error description:

enter image description here

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.

I have SLAT compatible hardware, virtualization is enabled in BIOS, my Windows 8 installation is 64bit and it's not virtualized. Hyper-V is installed (tried reinstalling it, but it didn't help). EDIT: VirtualBox or any other virtualization software (except for Hyper-V) is not installed

EDIT2: Seem to have been some other networking software which was installed. Having to remove it sucks big time because I need it professionally. I hope they fix it.

EDIT3: I wrote about it in more details with all I could find on my blog.

12条回答
太酷不给撩
2楼-- · 2019-01-06 10:17

I have found the solution for this stupid error. I had working on this issue almost 1 month.

I just did 2 things recently and I emulator did create virtual machine in Hyper-V as well as deployed my application into Emulator.

  1. DISABLE ANTI-VIRUS. (I was using Panda Cloud Anti-Virus)
  2. Enable FIREWALL if you did TURN OFF

I hope this would work.

Thanks.

查看更多
我想做一个坏孩纸
3楼-- · 2019-01-06 10:25

Some of the answers here were helpful and by testing the trial-and-error method, I found solution that worked for me. Note: I have Cisco VPN client installed on Windows 8 64-bit. I did not want to remove Cisco client.

  1. Open Hyper-V Manager – Virtual Switch Manager and create virtual switch called “Windows Phone Emulator Internal Switch”. Make it’s connection type “Internal”. You don't have to remove any existing virtual switches.
  2. Open “Network Connections”. Right click “vEthernet Windows Phone Emulator Internal Switch” and select Properties. Deselect “Deterministic Network Enchancer” and click Ok. You could do that with other vEthernet interfaces as well.
  3. Run Emulator and it should work.
查看更多
老娘就宠你
4楼-- · 2019-01-06 10:27

For what it's worth, my problems have seem to go away after I turned off "Deterministic Network Enhancer" on all the vEthernet adapters like this:

network adapter settings

I got inspired to try this following the documentation online from Microsoft here. See the section titled "To reconfigure the Hyper-V virtual adapter used by the emulator".

Hope this one sticks. This has been a tiring process trying to keep up with what works and not with this "new and enhanced" emulator.

查看更多
走好不送
5楼-- · 2019-01-06 10:29

This worked for me. Go to Windows 8 start screen. Scroll right and see HyperV tile.

Go into Hyper V. Go into the Virtual Switch Manager. Create a virtual switch called "Windows Phone Emulator Internal Switch" Make it's connection type Internal.

Now launch the emulator. It should work.

查看更多
甜甜的少女心
6楼-- · 2019-01-06 10:30

Had the same error message. After removing VirtualBox, everything works fine

查看更多
We Are One
7楼-- · 2019-01-06 10:34

If this problem happens on Windows 10, there's an easy fix... navigate to:

  • Start Menu
  • Settings
  • Network and Internet
  • Status
  • Network Reset

This cleans up all of the virtual network adapters so they can be recreated by the emulator. Once you reboot, delete the emulator and then recreate it and it should create the necessary network adapters in such a way that it will work.

DISCLAIMER: This technique worked for me using Visual Studio Emulator for Android on a Windows 10 machine. I understand it's not Windows 8 and it's not a Windows Phone emulator, but the underlying issue is the same so if anyone lands here and has Windows 10, you may want to try this.

查看更多
登录 后发表回答