Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2012 can't connect to WP8 emulator

I use

  • Windows 8 Pro 64 bit
  • AMD FX(tm)-4100 Quad-Core (support Hyper-V)
  • Visual Studio 2012 update 2
  • Latest Windows Phone 8 SDK
  • Latest DirectX

My problem: Visual Studio can't connect to emulator. Exactly CAN'T CONNECT, because I can see running emulator from Hyper-V Manager when try to run project.

On picture I present situation:

enter image description here

I have following scenario:

  1. Click "Run" on emulator
  2. Hyper-V Manager I can connect to emulator and check that it's works, but in VS I see only "The Windows Phone OS is starting..."
  3. After 5 minutes emulator turned off by himself.

I already check all popular similar discussion about that problem, but can't make it works.

Note: All works great a week ago.

like image 555
jimpanzer Avatar asked Oct 22 '22 02:10

jimpanzer


1 Answers

I ran into the exact same symptoms. For me, the following worked:

  1. Shut down the emulator
  2. From Hyper-V Manager, open Virtual Switch Manager
  3. Select the Windows Phone Emulator Internal Switch
  4. Click Remove
  5. Click OK

Once I did that, debugging from VS magically worked again. Checking back in Virtual Switch Manager shows it automatically recreated the switch for the emulator. Hope it helps.

like image 150
Rich Zwaap Avatar answered Jan 02 '23 21:01

Rich Zwaap