Hi Petra, were you ever able to resolve this particular issue? I'm having the same problem and can't figure out a resolution. Thanks!
try { // Create an instance of MobileCache, and set StoragePath MobileCache mobileCache = new MobileCache(); mobileCache.StoragePath = @"C:\GIS\Project\Mobil\db(Cache)\cache"; if (mobileCache.CacheExists) mobileCache.DeleteCache(); MobileServiceConnection conn = new MobileServiceConnection(); conn.Url = @"http://<server>/arcgis/rest/services/test3/MapServer/MobileServer"; // Create Mobile Cache Schema conn.CreateCache(mobileCache); // Open MobileCache mobileCache.Open(); // Use MobileCacheSyncAgent to download data from server MobileCacheSyncAgent agent = new MobileCacheSyncAgent(mobileCache); agent.MapDocumentConnection = conn; agent.DownloadExtent(mobileCache.FullExtent); //agent.Synchronize(); // Load layers from MobileCache to Map control map1.MapLayers.Add(mobileCache); //map1.Extent = mobileCache.FeatureSources[0].FullExtent; } catch (Exception ex) { MessageBox.Show(ex.Message); }
David and Petra,
Another test you can run is to open the cache directly with ArcGIS Mobile rather than making a project through the MPC. If it works there, it could be a problem in the MPC.