Hilton said:
I need to deploy my app to the Smartphone Emulator and have the app 'see'
the Internet. Debugging would be great too, but not absolutely necessary.
I have searched, but cannot find the settings that allow: deploy, debug, and
Internet connection.
I think Microsoft has no idea how many potential developers they've
lost due to the lack of information on using the emulators. So I just
wrote this up, and I hope people copy and enhance this with pictures
etc for everyone:
How to: make internet connection from Windows Mobile simulators.
IMPORTANT: if you're behind a corporate firewall with a proxy, this
won't work unless you also set the proxy information. You'll see where
below.
ENABLING ACTIVESYNC TO THE SIMS:
1) Bring up Activesync, choose File - Connection Settings
2) set "Allow connections to one of the following": DMA
AVOIDING THAT HORRIBLE ACTIVESYNC PROMPT:
To prevent getting the annoying partnership prompt each time you cradle
a device, use regedit and create this new DWORD value on YOUR HOST PC.
Life is so much more pleasant afterwards.
HKLM \ software \ microsoft \ windows ce services \ GuestOnly = 0x01
CRADLING NOTES:
1) Use the Device Emulation Manager to start any sim. (under Tools in
VS2005)
2) Select the sim you want, right-click - Connect.
3) After it's running, right-click - Cradle. This ActiveSyncs to the
sim. Make sure no other device is using ActiveSync or it won't work.
4) BEFORE YOU EXIT AND SAVE STATE FROM A SIM, BE SURE TO right-click in
Device Manager AND UNCRADLE !!!! Otherwise you're going to have a hard
time getting it to sync again.
DEPLOYING:
If you're cradled as above, then deploy will find the sim device. Note
that the first time you deploy, it might have to copy the Compact
Framework over and install it. That will take a while. Therefore be
sure to File - Save State & Exit on that Sim at least once to speed up
the next time you use the simulated device. Only Save State when that
Sim is working well, of course, otherwise you'll have to Clear it and
start setting it up again from scratch.
SMARTPHONE EMULATOR:
Start - Settings - Data Connections
Change "Work Connection" to use "Pass through connection".
Click "Done"
Start - Internet Explorer - Menu - Options - Connections
Uncheck "Automatically detect settings"
Select "Work" as your network.
Click "Done"
You should now be able to click Favorites and surf now.
Be sure to save state & exit so you don't have to setup this again.
WINDOWS MOBILE EMULATOR:
Start - Internet Explorer - Favorites - MSN Mobile
(let it fail) then click Settings in the popup balloon
Advanced - Select Networks - Set "My Work Network" for both - OK
Tasks - Set up my proxy server - check "This network connects to the
Internet" - OK - OK
Now you should be able to surf to the Favorites etc
Good luck!
Kevin Darling
Verizon developer