how to connect to the web from window mobile6

Y

yipmankai1983

Hi all,

i would like to connect the web site from wm6. The code is as follow:

Dim request As WebRequest = WebRequest.Create("http://218.253.xx.xx:
8080/folders/abc.php")
Try
Dim response As WebResponse = request.GetResponse()

Catch ex as Exception
MsgBox(ex.Message())
End Try

The above IP is my web server. Also the website can be displayed by
IE. But i run the code in wm emulator, it displays this message "Could
not establish connection to network." Could anyone answer this
question?

Yours,
Sky
 
A

Alberto Silva - Microsoft MVP - Device Application

Hi,
Are you able to browse to that page in the device/emulator browser? If not,
which are the steps you have made to have internet connectivity on the
device/emulator?

--

Alberto Silva
www.moving2u.pt - R&D Manager
http://msmvps.com/AlbertoSilva - Blog
Microsoft MVP - Device Application Development
 
Y

yipmankai1983

Hi,

Thank you for replying. You are right, i cannot browse the website in
the emulator browser. Now i have a new question, How to connect the
internet in the emulator? Is it necessary to have the real mobile to
connect the emulator so that the code can run in the real device? i
look forward your reply

Yours,
Sky
 
Y

yipmankai1983

Hi Alberto Silva,

I fix the problem because of your hint. Thank you very much

Regard,
Sky
 
A

Alberto Silva - Microsoft MVP - Device Application

Hi,
On ActiveSync/WMDC, go to Connection Settings and in the combobox which lets
you choose a COM port, choose DMA, then from the device emulator manager,
look for the running emulator and right-click it and choose Craddle. After
AS/WMDC shows up, choose one option (partnership or guest) and then try
again to go to internet from the emulator browser.

--

Alberto Silva
www.moving2u.pt - R&D Manager
http://msmvps.com/AlbertoSilva - Blog
Microsoft MVP - Device Application Development
 

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