Select to view content in your preferred language

ArcGIS Mobile 3.1

2118
1
01-30-2013 02:38 AM
RaoBase
Deactivated User
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);

In form load I have

mobileCache1.StoragePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @"\MapCache";

            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;
                    }

                    //mobileCache1.Open();
                    //mobileSync.Synchronize();
                    map1.MapLayers.Add(mobileCache1);
0 Kudos
1 Reply
Andréde_Mattos_Ferraz
Deactivated User
Install AGMRuntime.CAB on device.
0 Kudos