Get Internal Error 500 when creating cache from mobileservice connection

821
1
06-07-2011 01:19 PM
KathrynEngle
New Contributor
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());
}
0 Kudos
1 Reply
MelindaFrost
Occasional Contributor
0 Kudos