05 May 2015

Fixing Windows 10 emulators not showing up in VS2015RC or not having internet access

On one of my two PCs running Windows 10 10074 the Phone emulators did not have internet access, which is a bit of a hindrance if you want to write a demo that requires internet access, and after upgrading to VS2015RC from CTP6 I had an even bigger problem: the emulators did not even show up anymore. The only thing I saw was “Start”

image

I had inadvertently installed the Android Emulator, and there are apparently some issues with that. No amount of removing selected parts, repairing of modifying could fix it. So I went for the drastic solution: I uninstalled everything that remotely looked like it had something to do with VS2015RC, including the duplicate entry of the Windows Phone 8.1 emulators.

Then I opened the Hyper-V manager, removed all virtual machines there of Windows Phone 8.1 and 10 devicesimageAnd I deleted also all virtual switches. Now at one point the Hyper-V manager did not allow me to delete a virtual switch so I went for the bigger kill and removed all of Hyper-V by going into Programs and Features and uninstalling Hyper-V itself, and all the comes with it.

image
This requires the PC to reboot. After the reboot, I re-enabled Hyper-V again (which requires another reboot) and then I installed Visual Studio 2015RC again, sans the Android emulator and the cross-platform development kit, and then at last my Windows 10 emulators showed up – and they also now have internet access, albeit it takes them a minute to get it.

Your mileage may very, but this worked for me.

4 comments:

Ziaxp said...

Hay! Nice blog.
But I have spent 1 week on installations and resolving the issues, now I don't wana repeat such processes. Why didn't it installed on first attempt, why need such lengthy processes as a user once installed it and spend a lot of time.
Is it a bug?

Plz tell us a simple way to just resolve the issues with the existing Installations.

My Problem is only: The Windows Phone Emulators in Universal App not Running.
My Simulator is running fine, the Android Emulator is running fine.
I installed VS2013 Update 5, wherein all emulators work fine.

The Only problem with win10 Emulators in Universal Apps Not Running.
How to resolve this issue.

Now, even thought I uninstalled the external Windows 10 SDK and made a "repair" of VS2015 RC, no one of the phone emulators stars (it goes till the "OS is starting" phase and then remain in that state till, after many minutes, the emulator crashes and some time a popup says "The emulator is unable to get the sensor states from the device: Operation failed because connection is shut down", ... most of the times no error is reported).

I also tried to delete in the Hyper-V manager both the created emulators virtual machines and the related Virtual Switches related to Windows Phone Emulator Internal: these are recreated at the next run of the emulator from VS, but nothing changed ...

ERROR MESSAGES:

The following unexpected error occurred during bootstrapping stage 'Connecting to the device '8BDF218D-FDBB-4A97-90F9-3AA33B559A92'.':
DeviceException - App deployment failed. Please try again.

Bootstrapping 'Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB' failed. Device cannot be found. App deployment failed. Please try again.

Joost van Schaik said...

Wow Zia, I really have no idea. Have you tried installing on a clean machine, or installing VS2015?

Ziaxp said...

Yes, Of-course ... I have installed the VS2015 Community version, and still facing prob with wind10 Emulator, and due to this prob, I am unable to develop the Universal App yet. Plz get me out of this bloody bug.

You can see my Post on Stackoverflow, for which I've offered an open bounty of 50+ Reputation.
http://stackoverflow.com/questions/33252723/universal-app-vs2015-windows-phone-emulator-is-not-running

One of My friend have installed the Enterprise Edition of VS2015, and the Emulator is running fine.
If I didn't find any way, then I will switch to Enterprise one.

Paul said...

Yeah! Thank you, thank you, thank you! :)
It´s work!