Windows Phone 8 emulator error - Something happened while creating a switch

后端 未结 12 1689
孤独总比滥情好
孤独总比滥情好 2020-11-28 22:49

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:

相关标签:
12条回答
  • 2020-11-28 23:21

    Open the Hyper-V Manager from the start menu, and open the Virtual Switch Manager. Remove any existing switches, and try make a new virtual switch with a connection type set to internal.

    You might need to run XdeCleanup.exe afterwards.

    0 讨论(0)
  • 2020-11-28 23:25

    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.

    0 讨论(0)
  • 2020-11-28 23:26

    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.

    0 讨论(0)
  • 2020-11-28 23:29

    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.

    0 讨论(0)
  • 2020-11-28 23:33

    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.

    0 讨论(0)
  • 2020-11-28 23:35

    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.
    0 讨论(0)
提交回复
热议问题