using Rebex.Net;

Welcome to using Rebex.Net; Sign in | Help
in Search

Using Rebex.Net

News and announcements about Rebex.NET components

HOWTO: Configure Network in Windows Mobile / PocketPC Device Emulator

When Microsoft Visual Studio 2005 or 2008 is installed with .NET Compact Framework support, a part of the installation is a mobile device emulator that is very useful for testing and debugging .NET CF applications. Unfortunately, network access is not enabled in the emulator by default. Configuring it involves installing additional software and the whole process is complicated enough to cause a lot of confusion. Because of this, we have written the following guide.

Step A. Configure the device emulator

    1. In the emulator menu, go to “File->Configure”.
    2. Click the “Network” tab.
    3. Check the “Enable NE2000 PCMCIA network adapter…” checkbox.
    4. Select “Connected network card” in the list below the checkbox.
    5. Click “OK”.
    6. If no error dialog appears at this point, continue directly to Step C. Otherwise, read instructions for Step B below.

step1   step2

 

Step B. Install the Virtual PC Network Driver

Network adapter emulation is not working by default after installing Visual Studio 2005 because a VPC Network Driver is not a part of the installation. That’s why the following dialog usually appears after completing Step A above:

step3

VPC Network Driver is a network device driver that comes with Microsoft Virtual PC and is required by Visual Studio's device emulator as well to be able to bind to a physical network adapter in your computer. Few years ago, Microsoft used to distribute the driver as a small package at the URL from the error dialog above. Unfortunately, this is no longer available and the URL now redirects to Virtual PC 2007 download page that is much larger. If you don’t mind installing Virtual PC (recommended), this is not an issue, but in case you would only like the driver, you can get it from the “c:\Program Files\Microsoft Virtual PC\Utility\VMNetSrv” folder once Virtual PC is installed.


Step C. Configure the emulated mobile device

   1. Check the emulator screen to see whether the emulated network adapter works – if you see the 'connected' icon, the network adapter works fine. If you see the 'g' icon, something is still wrong - go back to Step A and make sure everything was configured correctly.

step4a

   2. Even though the network adapter is enabled now, you may still be unable to access the Internet – start Internet Explorer and try viewing a well-known website. You may get one of the following error messages, depending on your Windows Mobile version:

step5astep5b 

   3. If you are unable to access the Internet (this assumes that you are actually able to access the Internet from your workstation, of course) and you can also see the 'established connection' icon, click it and choose that the network card connects you to “The Internet” instead of “Work” – you should be able to access the internet now. If you can’t see the icon, follow the steps below.

   4. Tap the “Start” menu and select “Settings”. Then tap the “Network Cards” icon.

step6  step7

    5. Change the “My network card connects to” value from “Work” to “The Internet”.

step8a  step8b

    6. Internet should work now – give it a try!

step9

    7. If it still doesn't work, consult your network administrator. The network adapter is configured to use DHCP by default to get a network address, which might not work on high-security corporate networks. In this case, an IP address will have to be assigned manually (in the “Configure Network Adapters” dialog above – tap “NE2000 Compatible Ethernet Driver” in the list) by the network administrator.


Done!

Once this is done, you should also be able to access your local network and the Internet from the emulated device and from Rebex components for running on it, such as Rebex FTP/SSL or Rebex SFTP. If anything is still not working, please let us know!

 

Published Wednesday, January 28, 2009 2:29 PM by Lukas Pokorny
Filed under: ,

Comments

No Comments
New Comments to this post are disabled
Powered by Community Server (Personal Edition), by Telligent Systems