ArcGIS Mobile10 在线加载缓存,求解??

iichuang 2012-08-08 09:59:15
代码:
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()

...全文
228 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
nihaoya 2012-08-14
  • 打赏
  • 举报
回复
不错,不错
iichuang 2012-08-09
  • 打赏
  • 举报
回复
问题解决:

ArcGIS Mobile访问的服务和程序中访问的服务不一致,程序中的服务和ArcGIS发布的服务一致
gnimgnot 2012-08-08
  • 打赏
  • 举报
回复
windows mobile的sdk?
染上空白 2012-08-08
  • 打赏
  • 举报
回复
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()
gnimgnot 2012-08-08
  • 打赏
  • 举报
回复
那是异常位于哪儿,错误信息是什么?
染上空白 2012-08-08
  • 打赏
  • 举报
回复
就是上面的哪个啊
gnimgnot 2012-08-08
  • 打赏
  • 举报
回复
异常是什么?
染上空白 2012-08-08
  • 打赏
  • 举报
回复
嗯嗯,怎么解决啊

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧