
Connecting to the Device Emulator
Use the DMA transport that Visual Studio 2005 provides for connecting to the Device Emulator. This transport eliminates virtually all connection issues between the development computer and the emulator.
Important |
|---|
| Use the TCP/IP transport only if you have some serious specific reason. To resolve issues arising from use of TCP/IP with the emulator, review the steps that follow. For more information, see the Mobile Developer Center. |
Failed to Open Virtual Switch Driver
If you are trying to connect the Device Emulator to a network using the emulated NE2000 or CS8900 card, you need a Virtual Switch Driver. You can download a driver from the Mobile Developer Center.
An error opening the driver can arise for several reasons, including:
-
Lack of driver.
-
The network card on the development computer does not have the driver installed.
-
There were problems during the installation of the driver.
-
The driver is in a disabled state.
-
The development computer does not have a network card.
Use the following steps to diagnose the precise cause.
To diagnose the precise cause of the failure
-
Look on the Network tab of the Emulator Properties dialog box.
If the NE2000 and/or the CS8900 cards are enabled, verify that the network cards they are bound to are present and connected. To open the Emulator Properties dialog box, click Configure on the emulator File menu.
-
Look at the network properties of the adapter to verify that the item Virtual Machine Network Services is present, enabled, and of the correct version, which is 2.6.465.224 or later.
-
If these steps fail to fix the problem, reinstall the driver.
Deployment to Emulator Error
If your development computer has a wireless network connection and you are using the TCP Transport, you might need additional steps, such as installing the Microsoft Loopback Adapter. For more information, see the Mobile Developer Center.
Note |
|---|
| Unless you have some serious specific reason to use the TCP Transport, use the DMA transport to avoid network issues. |
Cannot Debug After Switching Transports
You can change the transport for the emulator, but the emulator does not bind to the new transport until you soft-reset the device.
Note |
|---|
| The DMA transport is the preferred transport for the Device Emulator. Use the TCP/IP transport only if you have serious specific reasons for doing so. |
To switch transports
-
On the Visual Studio Tools menu, click Options, then click Device Tools, and then click Devices.
-
Select an emulator, and then click Properties.
-
In the Transport box, select a different transport.
If you are switching to TCP/IP, click Configure to set additional options.
-
Click OK to close the dialog boxes.
Cannot Connect to Emulator While Running in Virtual PC Session
Repairing the Device Emulator Installation
Errors indicating a failure to connect to the Device Emulator are typically not installation errors. However, you can use the following steps to repair the Device Emulator installation. To do this, you need your original installation media. Repairing your Visual Studio 2005 installation does not repair Device Emulator installation.
To repair the Device Emulator installation
-
Navigate to wcu\ARM on your original Visual Studio 2005 installation media.
The location of this folder, under Disk 1, Disk 2, and so on, varies with your edition of Visual Studio.
-
Double click vs_emulator.exe to open the Device Emulator Setup Wizard, and then follow the instructions.
Additional Tips
The Device Emulator independent Help system provides additional tips. For more information, click the Device Emulator Help menu and look for "Troubleshooting Connection Issues" on the Content or Index tabs.