刚装的vs2015 社区版 出现这个问题,wp8.1和win10m模拟器都无法启动,找了好久找到的解决方案,放这儿供大家参考,免得大家像我一样走弯路:
Windows Phone emulator not starting (couldn`t setup the UDP port)
|
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 to the Windows Phone operating system. Couldn`t setup the UDP port" I tried "reparing" emulators, but nothing changed. Hyper-V manager shows that virtual machine works, and it can be started directly from Hyper-V manager. As i said, in previous windows 10 TP builds it was OK. |
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. |
|||||||||||||||||||||
|
解决方案二(我是通过这个方案解决的):
The solutions above did not work for me. I found out that the issue was with the Hyper v adapters so I decided to deleted them which caused hyper -v to create them again. These are the steps
See this for more info http://www.gfi.com/blog/how-to-remove-hidden-network-adapters-from-virtual-machines/ |
|||||||||||||||||
|
解决方案三:
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. |
|
解决方案四:
For me, the following steps worked:
|
|
解决方案五:
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. |
|
解决方案六:
For me all above solutions didn't work. Maybe because my Ethernet is disabled. My solution is similar to other: 1) delete vm's from hyper-v 2) delete all internal switches 3) create manually new switch and select wifi 4) install vm profile 5) start it :)... after 6h endly |