I am getting the following error when synchronizing my cache to a service that has a coordinate projection system in WGS_1984_Web_Mercator_Auxillary_Sphere. The objects are still synchronized to my mobile cache and I am able to see them on the map. Are there only select projections that are supported? Any help/suggestions would be appreciated.
...snippet of code that starts the sync process...
var agent = new MobileCacheSyncAgent(_fenceCache, _mobileServiceConnection);
LogFeatureCount("Before Sync: ", _syncRequest.Query);
agent.FeatureSyncAgents[0].DownloadFilter = new QueryFilter(syncRequest.Query);
agent.FeatureSyncAgents[0].SynchronizationDirection = SyncDirection.DownloadOnly;
agent.ProgressChanged += AgentProgressChanged;
agent.BeginDownloadExtent(_fenceCache.FullExtent, null, this);
System.*System.ArgumentException*System.ArgumentException: Invalid Coordinate System.
at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReference.Create(Int32 code)
at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReference.CreateWgs84SpatialReference()
at ESRI.ArcGIS.Mobile.SpatialReferences.SpatialReferenceConverter..ctor(SpatialReference spatialReference2, GeoTransformation geoTransfromation)
at ESRI.ArcGIS.Mobile.FeatureCaching.MobileCacheSchema.get_SpatialReference()
at ESRI.ArcGIS.Mobile.FeatureCaching.MobileCacheSchema.WriteRequestHeader(ServerRequestCode requestCode, BinaryWriter binaryWriter)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MapDocumentConnection.GetFeatureCount(FeatureSource featureSource, QueryFilter filter, String versionName)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.DecomposeExtent(QueryFilter filter, FeatureSyncResults results)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.Download(QueryFilter downloadFilter, FeatureSyncResults results)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.FeatureSyncAgent.DownloadExtent(Envelope extent)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MobileCacheSyncAgent.DownloadExtent(Envelope extent)
at ESRI.ArcGIS.Mobile.FeatureCaching.Synchronization.MobileCacheSyncAgent.DownloadAsync(Object state)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()