I have 2 servers, 10.0 and 10.1, and i have one mobile application. The app works for mobile services 10.0 and not works to mobile services 10.1. I already checked the settings of both services and everything seems normal. Have any other configuration to be done in MobileServices 10.1?
private void syncFilter()
{
mobileCache1.StoragePath = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + @"\MapCache";
//SERVICE 10.1 not work on create CACHE - WEB.EXCEPTION
//mobileServiceConnection1.Url = "http://srv508:6080/arcgis/services/CENIBRA/UsoSoloMobile/MapServer/MobileServer";
//SERVICE 10 WORK all app....
mobileServiceConnection1.Url = "http://srv514/arcgis/services/FIBRIA/mob_parcel/MapServer/MobileServer";
mobileCache1.DeleteCache();
MobileCacheSyncAgent mobilesync = new MobileCacheSyncAgent(mobileCache1, mobileServiceConnection1);
MobileCacheSyncResults mobileResults = new MobileCacheSyncResults();
mobileServiceConnection1.CreateCache(mobileCache1);
mobileCache1.Open();
MobileCacheSyncAgent agent = new MobileCacheSyncAgent(mobileCache1, mobileServiceConnection1);
//bottom left , top right
Envelope env = new Envelope(new Coordinate(-40.000173444, -19.557481484 ), new Coordinate(-39.989017249, -19.549518499));
agent.DownloadExtent(env, 0, 0);
}
StackTrace
"at ESRI.ArcGIS.Mobile.MobileServices.BinaryWebService.ExecuteRequest()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MobileServiceConnection.ExecuteRequest()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.RequestSchema()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()\r\nat ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()\r\nat SmartDeviceProject1.Form1.syncFilter()\r\nat SmartDeviceProject1.Form1.Form1_Load()\r\nat System.Windows.Forms.Form.OnLoad()\r\nat System.Windows.Forms.Form._SetVisibleNotify()\r\nat System.Windows.Forms.Control.set_Visible()\r\nat System.Windows.Forms.Application.Run()\r\nat SmartDeviceProject1.Program.Main()\r\n"