CreateCache Error [Web.Exception]

995
7
11-29-2012 09:11 AM
Andréde_Mattos_Ferraz
Occasional Contributor
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"
0 Kudos
7 Replies
MikeDuppong
New Contributor
André, did you resolve this issue?

I'm coming up with the same.
0 Kudos
Andréde_Mattos_Ferraz
Occasional Contributor
Remove all references of Arcgis SDK 10 (MOBILE, ArcObjects ...) and SDK 10.1.Then reinstall SDK 10.1 e SDK MOBILE 3.1 . Work for me.
0 Kudos
MikeDuppong
New Contributor
Ah, OK.

My situation is that I can't get 10.0 on the mobile to talk with a 10.1 server.

Thanks for your response.
0 Kudos
Andréde_Mattos_Ferraz
Occasional Contributor
The url for acess services 10.1 is diferent:

<!--Mobile 3.1(10.1)-->
"http://srv514/arcgis/rest/services/FIBRIA/mob_parcel/MapServer/MobileServer"
<!--Mobile 10.0-->
"http://srv514/arcgis/services/FIBRIA/mob_parcel/MapServer/MobileServer"

And i think, if you want access a service 10.1 you will need upgrade your app to use SDK MOBILE 3.1 (dll)...

Try just substitute url of your service and try run..
0 Kudos
MikeDuppong
New Contributor
Right, I realize the URL has changed, but still no luck.  Just get a nondescript WebException when attempting a mobileServiceConnection.CreateCache() call.
0 Kudos
Andréde_Mattos_Ferraz
Occasional Contributor
You will need change your SDK to a newer (3.1).
0 Kudos
VickyS
by
Occasional Contributor
I'm using ArcGIS Mobile 10.1.1 and the latest SDK. Did anyone solve this?

Thank you
0 Kudos