Windows Phone emulator not starting (couldn`t setup the UDP port)

前端 未结 15 1653
春和景丽
春和景丽 2020-12-02 13:46

After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error: \"Windows Phone Emulator is unable to connect

相关标签:
15条回答
  • 2020-12-02 13:56

    If for some reason you are unable to delete internal switches in Hyper-V UI:

    1. go to regedit HKLM\SYSTEM\CurrentControlSet\Services\vmsmp\Parameters\SwitchList

    2. delete Windows Phone entry (or all)

    3. reboot computer
    4. start VS and run emulator which will set everything up
    0 讨论(0)
  • 2020-12-02 13:58

    In my case there was a problem with my notebook modem. It is a Sierra Wireless EM7345 4G LTE. As soon as I deactived it the Win10 Mobile Emulator worked like a charm.

    0 讨论(0)
  • 2020-12-02 14:01

    The steps suggested by Magani Felix above worked for me, but I had to apply two additional steps:

    1. After deleting virtual switches from devmgmt.msc, the remaining virtual switch entry can't be removed from hyper-v manager anymore (step 5). However, just leaving it there was ok.
    2. The first time I started the emulator from Visual Studio it could not connect. When I looked at the virtual switch in hyper-v manager, it had been created as a private virtual network. Shutting down the emulator from both Visual Studio and hyper-v manager, and then changing the internal switch to internal virtual network solved the issue. Afterwards, the emulator would start from Visual Studio and connect.
    0 讨论(0)
  • 2020-12-02 14:05

    I had similar problem, i tried the various solutions offered (cleaning up the Hyper-V images and network switches), reinstalling Hyper-V, reinstalling Visual Studio, restoring to Old System Restore point - but none of my actions didn't resolved the problem.

    But i tried below action which fixed the problem, off course some might able to resolve the problem with above steps and other answers provided.

    In my case, my virtual adapter doesn't have network connectivity. I shared my wi-fi adapter connectivity to virtual adapter. This fixed for me, i can able to deploy apps into emulator without any crashes.

    0 讨论(0)
  • 2020-12-02 14:06

    Do you see your "Virtual Switch" information under: Control Panel\Network and Internet\Network Connections? If not, you can try to recreate your "Windows Phone Emulator Internal Switch" again from Hyper-V to see if that resolves your issue. Try these steps below:

    1.) Open Hyper-V

    2.) Shutdown any existing configured Phone emulators.

    3.) Click on "Virtual Switch Manager"

    4.) Click on the "Windows Phone Emulator Internal Switch"

    5.) Remember what the settings are displayed there (because you will delete it and recreate it)

    6.) Delete the existing "Windows Phone Emulator Internal Switch" by clicking "Remove"

    7.) Click "Apply" and "OK"

    8.) Re-create the "Windows Phone Emulator Internal Switch" by clicking the "New virtual network switch" and use the same settings you remembered in Step 5.

    9.) Then try to F5 from Visual Studio - which should configure a new emulator on the right virtual switch.

    0 讨论(0)
  • 2020-12-02 14:08

    Try this OPTION

    1.) Open Hyper-V

    2.) Shutdown any existing configured Windows Phone emulators.

    3.) Delete the existing Phone emulators you see in the list

    3.) Click on “Virtual Switch Manager”

    4.) Click on the “Windows Phone Emulator Internal Switch”

    5.) Delete the existing “Windows Phone Emulator Internal Switch” by clicking “Remove”

    6.) Click “Apply” and “OK”

    This should work. If this does not, then do this:

    Now, open “Network Connections”

    You will see there “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)”

    But hey, you deleted this same switch in OPTION 1, but still it shows in the Network Connections page.

    Now open Device Manager, Expand “Network Adapters”

    You will see the names appearing under Network Adapter match the same as “Device Name” mentioned in “Network Connections” window

    Find out the correct “Hyper-V Virtual Ethernet Adapter” to be removed.

    Now, in Device Manager, right click the correct Network Adapter and choose “Uninstall”. This should disappear from the list.

    Open “Network Connections” and see that “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)” will no longer be present there.

    Open Visual Studio, run the project in your desired emulator.

    This time everything will work fine and the Emulator will boot up Windows 10 or Windows 8.

    0 讨论(0)
提交回复
热议问题