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
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