Hi, I am new to ArcGIS mobile. I have followed online guide to try deploy a simple mobile app in Windows Classic emulator
The steps I followed are:
1. Install Visual Studio 2008 and SP1 2. Install Microsoft Compact Framework 3.5 3. Install ArcGIS Mobile 3.1 4. Publish ArcGIS Server map service and enable Mobile Data Access 5. Create Smart Device Project and add Map Control 6. Copy ArcGISMobile.CAB to Mobile Device and install on Windows Mobile 6 Classic Emulator 7. In Visual Studio Connect Windows Mobile 6 Classic Emulator and Craddle
When I run app, It then comes up with error "Missing ArcGIS registry key" on this line: mobileServiceConnection1.CreateCache(mobileCache1);
if (!mobileCache1.IsValid) { MessageBox.Show("Map cache is invalid!"); return; }
if (mobileCache1.IsEmpty) { try { mobileServiceConnection1.Url = @"http://myserver/ArcGIS/rest/services/BusinessData/MobileServer"; mobileServiceConnection1.WebClientProtocolType = WebClientProtocolType.BinaryWebService; MobileCacheSyncAgent mobileSync = new MobileCacheSyncAgent(mobileCache1, mobileServiceConnection1); mobileServiceConnection1.CreateCache(mobileCache1); MobileCacheSyncResults mobileResults = new MobileCacheSyncResults(); //get the schema to determine list of layers mobileServiceConnection1.CreateCache(mobileCache1);
mobileCache1.StoragePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @"\MapCache"; if (!mobileCache1.IsValid) { MessageBox.Show("Map Cache is not valid!"); return; }