Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows phone development - can't run emulator with internet connection

Background

A few years ago I was developing for C#, WPF and Silverlight and then moved to developing for Android.

I've decided to give Windows phone a try, and install the newest Visual Studio Pro 2012 with its Windows phone sdk, together with the latest version of Windows - windows 8 pro.

I've created a new Windows phone project hoping I will start learning from a hello world project, and I've launched the emulator .

Some specs information

  • OS is windows 8 pro (final) . 64 bit CPU .
  • Visual Studio Pro 2012
  • Windows phone sdk 8
  • Connected by usb to a wireless D-Link device (DWA-140) .

The problem

Just as soon as I've started the emulator, a dialog came asking if I want to enable networking:

enter image description here

When I chose that I want, an error has appeared:

enter image description here

After selecting ok, the emulator crashed.

Knowing how to search for solutions on the internet, I've found a few (like here and here ) that suggested me to delete the network switches, create an internal switch, and whatnot.

The question

I don't understand what I'm doing wrong, and this is just my starting point. Can anyone please help me with this error and how to make the emulator work?

Please tell me the exact steps that I need to take.


EDIT: after uninstallation of anything related to VS and WP , i've re-installed them both and i still get the same errors.

Not only that , but when trying to create a new external switch (which some websites offered) , it showed me the next error :

enter image description here

How could such a basic feature of an emulator be missing out of the box ?

like image 416
android developer Avatar asked Oct 05 '22 09:10

android developer


1 Answers

You might try a couple of things.

First, verify the network connection settings for the "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)" adapter.

To do so, open "Control Panel\Network and Internet\Network Connections" in Control Panel. Right click on the "vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)" adapter, and choose "Properties". Under "This connection uses the following items:" verify that ONLY the following options are selected:

  • Client for Microsoft Networks
  • QoS Packet Scheduler
  • File and Printer Sharing for Microsoft Networks
  • Microsoft LLDP Protocol Driver
  • Link-Layer Topology Discovery Mapper I/O Driver
  • Link-Layer Topology Discovery Responder
  • Internet Protocol Version 6 (TCP/IPv6)
  • Internet Protocol Version 4 (TCP/IPv4)

enter image description here

In addition, you may want to review the network adapter settings for the emulator image in "Hyper-V Manager"

Verify the network adapters that are shown are valid. You might try disabling some (like the adapters connected to the WiFi or Wired Ethernet adapters on your machine) if the adapters they are bound to are not currently enabled in the OS.

enter image description here

Let me know if that helps!

like image 150
BStateham Avatar answered Oct 10 '22 02:10

BStateham