代码:
mobileServiceConnection1.Url = @"http://192.168.1.106/ArcGIS/rest/services/World/MobileServer";
// mobileServiceConnection1.WebClientProtocolType = WebClientProtocolType.BinaryWebService;
mobileServiceConnection1.WebClientProtocolType = WebClientProtocolType.BinaryWebService;
MobileCacheSyncAgent mobileSync = new
MobileCacheSyncAgent(mobileCache1,mobileServiceConnection1);
MobileCacheSyncResults mobileResults = new MobileCacheSyncResults();
//get the schema to determine list of layers
mobileServiceConnection1.CreateCache(mobileCache1);
-----------------------------------------------------------------------------------------------------
异常:
位于 ESRI.ArcGIS.Mobile.MobileServices.BinaryWebService.ExecuteRequest()
位于 ESRI.ArcGIS.Mobile.MobileServices.MobileServiceConnection.ExecuteRequest()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.RequestSchema()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ArcGisMobile.Form1.LineLoadLayer()
位于 ArcGisMobile.Form1.Form1_Load()
位于 System.Windows.Forms.Form.OnLoad()
位于 System.Windows.Forms.Form._SetVisibleNotify()
位于 System.Windows.Forms.Control.set_Visible()
位于 System.Windows.Forms.Application.Run()
位于 ArcGisMobile.Program.Main()
------解决方案--------------------------------------------------------
windows mobile的sdk?
------解决方案--------------------------------------------------------
嗯嗯,怎么解决啊
------解决方案--------------------------------------------------------
异常是什么?
------解决方案--------------------------------------------------------
就是上面的哪个啊
------解决方案--------------------------------------------------------
那是异常位于哪儿,错误信息是什么?
------解决方案--------------------------------------------------------
mobileServiceConnection1.CreateCache(mobileCache1);在这句是出现异常
异常:
位于 ESRI.ArcGIS.Mobile.MobileServices.BinaryWebService.ExecuteRequest()
位于 ESRI.ArcGIS.Mobile.MobileServices.MobileServiceConnection.ExecuteRequest()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.RequestSchema()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()
位于 ESRI.ArcGIS.Mobile.MobileServices.MapDocumentConnection.CreateCache()