I'm getting the error message as follows. This occurs when it is trying to create the cache from the mobile service connection. Any ideas on what could be causing this?
"System.Net.WebException: The remote server returned an error: (500) Internal Server Error.\r\n at ESRI.ArcGIS.Mobile.MobileServices.MobileServiceConnection.ExecuteRequest(Stream requestStream)\r\n at ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.RequestSchema(String targetCoordinateSystemString, CacheVersion cacheVersion)\r\n at ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache(String cacheStoragePath, String targetCoordinateSystemString, CacheVersion cacheVersion)\r\n at ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache(String cacheStoragePath, String targetCoordinateSystemString)\r\n at ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache(String cacheStoragePath)\r\n at ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache(MobileCache mobileCache)\r\n at MobileDesktopApp.Form1.Form1_Load(Object sender, EventArgs e) in C:\\Projects\\mdu\\Code\\WinSDK_Walkthrough\\Form1.cs:line 36"
Code is: try { mobileServiceConnection1.Url = @"http://servername/arcgis/services/servicename/MapServer"; (Real names are actually in there, this is for posting) MobileCacheSyncAgent mobileSync = new MobileCacheSyncAgent(mobileCache1, mobileServiceConnection1); mobileServiceConnection1.CreateCache(mobileCache1); } catch (Exception ex) { Debug.WriteLine(ex.ToString()); }