Connecting Pocket PC 2003 Emulator to Local Area Newtwork

  • Thread starter William LaMartin
  • Start date
W

William LaMartin

I have Visual Studio 2005 installed on a laptop and a desktop computer. I
have downloaded and installed the Virtual Machine Network Driver for
Microsoft Device Emulator on both these machines. The idea being to debug
programs for the Pocket PC 2003 using the Pocket PC 2003 SE Emulator. Doing
this for any program that does not entail networking works fine on both
computers.

The laptop computer is connected to the network via a network card and cable
to the router. The laptop connects via a wireless connection to the router.

If I add something as simple as getting the IP address of the device, the
program when debugged on the laptop works fine, yielding an address like
192.168.0.8., but on the desktop, I get
3ffe:8311:ffff:f70f:0:5efe:157.59.158.59.

If I try to return the html content of a web page with the code below, it
works fine on the laptop, but on the desktop computer I get an error "Could
not establish connection to network". In fact, if I simply look at the
emulator on the laptop and the desktop I see a big difference. On the
laptop at the top of its screen there are the two arrows pointing in
opposite directions indicating a network connection. On the desktop there
is the letter G in their place and when you click on it you are offered the
chance to set up a network connection.

Finally, when the code below is run on the emulator in the desktop, the
following error messages are produced in the immediate window:

A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll
A first chance exception of type 'System.Net.WebException' occurred in
System.dll
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll

What is missing on the desktop?

------------

code:

Try
Dim URL As String = "http://www.ibm.com"
Dim myRequest As System.Net.WebRequest =
System.Net.WebRequest.Create(URL)
Dim myResponse As System.Net.WebResponse = myRequest.GetResponse
Dim myStream As System.IO.Stream = myResponse.GetResponseStream
Dim sr As System.IO.StreamReader = New
System.IO.StreamReader(myStream)
Me.TextBox1.Visible = True
Me.TextBox1.Text = sr.ReadToEnd
myStream.Close()
myResponse.Close()
Catch ex As Exception
Cursor.Current = Cursors.Default
MsgBox(ex.Message)
End Try
 
W

William LaMartin

I have solved the problem as follows:

1. Just because you download and install the Virtual Machine Network Driver
for Microsoft Device Emulator that doesn't guarantee that your computer's
network connection will be set to use it. That was the case on my
laptop--it wasn't on the desktop. On my desktop computer, I had to open the
properties of my local Area Connection and put a check in the box next to
the Virtual Machine Network Services entry for my network card.

That got the emulator to use the card and provided the emulator with an IP
address of 192.168.0.9

2. Additionally, to get the emulator to be able to use the Internet, I had
to do the following (this was required on both computers):

1. Open Settings and click on the Connections tab
2. Click on the connections icon
3. Click the setup my proxy server link
4. Check the This network connects to the internet box, then click OK
5. Next click the Advanced tab
6. Click the Select Networks button
7. Select My Work Network from the first drop down list
8. The click OK out of everything
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top