Run WAP on Device

  • Thread starter Thread starter Sharon
  • Start date Start date
S

Sharon

Hello all,

Is it possible to run a .net mobile web application in debug directly on
a device connected to the PC via usb cable? Or if not directly on the
device, how do I use the MS Mobile Explorer (ver 3.0) for debug?

I've previously done compact development for PocketPC and could select
to run debug through the emulator or directly on the device, but I can't
find anything about how to do the same thing with a WAP application.

Thanks,
Sharon.
 
Hello all,
Is it possible to run a .net mobile web application in debug directly on
a device connected to the PC via usb cable? Or if not directly on the
device, how do I use the MS Mobile Explorer (ver 3.0) for debug?

I've previously done compact development for PocketPC and could select
to run debug through the emulator or directly on the device, but I can't
find anything about how to do the same thing with a WAP application.

Thanks,
Sharon.

The answer is yes, but it takes a little work. First a little explanation.

When you're running a mobile web application the PocketPC is simply
acting as a web browser, which means the application is actually
"running" on your web server. This means you'll be setting breakpoints
and debugging the IIS application.

Now, if you PocketPC is connected to the computer that is acting as the
server, you'll need to use the IP address of your computer instead of
your computer's name. The Pocket PC when connected via the pass-through
feature of ActiveSync won't resolve the name properly into an IP
address. I've done this and it works.

-- John
 
John said:
The answer is yes, but it takes a little work. First a little explanation.

When you're running a mobile web application the PocketPC is simply
acting as a web browser, which means the application is actually
"running" on your web server. This means you'll be setting breakpoints
and debugging the IIS application.

Now, if you PocketPC is connected to the computer that is acting as the
server, you'll need to use the IP address of your computer instead of
your computer's name. The Pocket PC when connected via the pass-through
feature of ActiveSync won't resolve the name properly into an IP
address. I've done this and it works.

-- John

Hi John, and thanks for the response, but it's not quite the answer to
my problem.

This application is for phones rather than PocketPC. I know I can run it
from localhost on my PocketPC connected via ActiveSync, but I need to
try and do the same thing on my PHONE, rather than PocketPC. That's my
problem.

I've connected my phone via usb cable, and entered the address as
"http://localhost/[application]", but GPRS kicks in immediately and (of
course) can't find "http://localhost".

Sharon.
 
Hi John, and thanks for the response, but it's not quite the answer to
my problem.

This application is for phones rather than PocketPC. I know I can run it
from localhost on my PocketPC connected via ActiveSync, but I need to
try and do the same thing on my PHONE, rather than PocketPC. That's my
problem.

I've connected my phone via usb cable, and entered the address as
"http://localhost/[application]", but GPRS kicks in immediately and (of
course) can't find "http://localhost".

Sharon.

The same goes for a smartphone. The easiest way to test it is connecting
the phone via ActiveSync. Then enter your computer's IP address, not
localhost, and it should be able to connect.

-- John
 
Back
Top