Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Phone 8.1 emulator stuck at starting OS

I did fresh W10 and VS 2015 install and now when i try running newly created hello world type of app on emulator it doesn't load, all it says is: Emulator text after 5-10 minutes it exits and Visual studio returns DEP6100 (error on bootstrapping stage - connecting to device) and DEP6200 (Device not found) errors.

However VM itself starts, boots up and works in Hyper-V

VM works

Things i tried:

  • Change/Repair Windows 8.1 emulator (nothing changed)
  • Change/Repair Visual studio (nothing changed)
  • Re-install Visual studio (nothing changed)
  • Change Switch type in Hyper V from internal to private (When emulator windows popped it it prompted that there is error with resolving host ip, but booted up and actually this time passed Windows Phone OS is starting screen and actually booted up, but Visual Studio somehow didn't recognize that and after a few minutes of it booting up it forcefully shut down VM and returned same error codes)
  • Removing all ethernet adapters (including my computer one) and then checking for hardware changes so it would create them again. (They were recreated but didn't help, there are only 3 adapters now (Ethernet, Wifi and vEthernet(Windows phone internal Switch)
  • Relaunching it billion of times without changing anything (somehow didn't work)
like image 966
Edgar.A Avatar asked Aug 05 '15 00:08

Edgar.A


2 Answers

I tried what you did and it didn't work. So I did the following:

  1. Go to "Control Panel\Network and Internet\Network Connections"
  2. right click on "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)".
  3. Choose properties and check the case "Hyper-V Extensible Virtual Switch" and click OK.
  4. Again right click on vEthernet and disable it. Then re-enable it.
  5. Run the VM and wait for a few minutes (The 1st time is always longer to load)
like image 187
DomDev Avatar answered Sep 19 '22 15:09

DomDev


So, after around 2 days of non-stop googling i found a solution from other stackoverflow question where someone had similar problem but with Android emulator Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3

What I did was:

  1. Delete All VMs in Hyper V
  2. Delete All switches in Hyper V
  3. Run xdecleanup.exe for every version of XDE (Found at C:/Program Files (x86)/Microsoft XDE/ [8.0/8.1/10.0.10240.0] /XdeCleanup.exe
  4. Run Change/Repair on 'Windows Phone 8.1 Emulators - ENU'
  5. Restart Visual Studio
like image 39
Edgar.A Avatar answered Sep 18 '22 15:09

Edgar.A