Steps to Create Mobile Application in ASP.NET 2.0 1) Create a File System Website / You can create directly IIS application also. 2) Create a folder by the name of Mobile 3) Add a new mobile web user form.
4) 5) Rename Default.aspx with a new name otherwise it will clashes with the normal website default.aspx webform. I’m renaming this with Mobile_Default.aspx 6)
7) 8) Design View of Mobile Web Form.
9) You have to use only the Mobile Web Forms tools from toolbox.
10) 11) Design view of my mobile web form.
12) To Run The mobile application on mobile devices you have to configure the IIS in your machine. 13) Start Control Panel Administrative Tools Double click on internet information service.
14) 15) Cross check that IIS is working in your computer or not. (You can type the url: http://localhost/iishelp/iis/misc/default.asp ) 16) Also check the default web site shouldn’t be stopped. If it’s stopped then right click on default website and choose an option start. 17) Now Right Click on Default Web Site and go to properties. 18) Choose Home Directory Tab:
19) 20) Replace the Local Path from C:\InetPub\wwwroot to your application path. 21) Go to cmd and check your IP Address and Machine Name.
22) 23) Go to internet explorer and type the following url: http://localhost/Your Application Name http://172.23.22.189/YourApplicationName http://00210-E8/YourApplicationName 24) If it’s working fine then first step is over. 25) Go to your mobile application now. 26) Go to Tools Menu Options Devices Pocket PC 2003 SE Emulator Go to properties
27) 28) Click on Emulator Options.
29) 30) Cross check that all three above options should be unchecked. 31) Cross Check Microsoft ActiveSync is installed or not. If not then install it. 32) Now go to Tools Menu Click on Device Emulator Manager.
33)
34) Right Click on Pocket PC 2003 SE Emulator then connect.
35)
36) 37) Right Click on Pocket PC 2003 Emulator and click on Cradle
38) 39) This will automatically State The Synchronization with Microsoft Async 40) Cross check the settings of Microsoft Async
41) 42) Go to File Click on Connection Settings. 43) Do the Appropriate Changes
44) 45) Click on Ok.
46) 47) Click on Start and click on settings
48)
49) 50) Click on Connections
51) 52) Double Click on Connections
53) 54) Click on Advanced
55) 56) Click on Select Networks.
57) 58) Choose My Work Network and Click on Ok.. Ok... and Ok.
59) Click on Start and then go to Internet Explorer
60) Type the URL
61) 62) Type the specified URL and run application.
63) 64) Note: Connecting to Microsoft Async it will propmt to configure Microsoft Outlook just ignore that part. 65) Note: Properly shutdown the Device Emulator first do uncradle then shutdown then close the device emulator.
R&D DONE BY DHARMESH RANA Email:
[email protected]