zhangjie1981
路人甲
路人甲
  • 注册日期2006-12-03
  • 发帖数31
  • QQ
  • 铜币228枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:3391回复:1

ArcGIS Mobile 部署生成的 .exe 报错 无法找到 PInvoke DLL

楼主#
更多 发布于:2008-07-17 17:35
<H2> </H2>
<DIV class=t_msgfont>我在定制的wince 5下面开发ArcGIS Mobile ,刚开始就出错了,在formload中加入以下代码:<BR><BR>Dim storagePath As String<BR>        Me.TextBox1.Visible = False<BR>        storagePath = "Storage Card\MapCache"<BR>       If (MapCache1.IsOpen) Then<BR>            Return<BR>        End If<BR>        Try<BR>            MapCache1.StoragePath = storagePath<BR>            If (MapCache1.Exists = False) Then<BR>                MapCache1.Create()<BR>            End If<BR>            MapCache1.Open()<BR>        Catch ex As Exception<BR>            MessageBox.Show(ex.Message.ToString())<BR>        End Try<BR><BR>此程序改变        storagePath = "Storage Card\MapCache" 的值在Pocket PC 5的模拟器上能正常运行,并显示地图。<BR>然后我按照上述代码 生成--重新生成 ,把release文件夹和MapCache文件夹拷贝到 SD卡上,插入运行起来的wince设备,打开exe文件,竟然报错:无法找到PInvoke DLL “ESRIMobile92CE.dll”, 一直都是这样,郁闷的很啊,在网上也没有找到具体的解决方法,望高手指点一二啊!!!<IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/handshake.gif" border=0></DIV>
<DIV class=t_msgfont><BR> </DIV>
<DIV>制作完成的安装包如图1,包含三个文件:CabWiz.log ,delay.CAB,delay.inf ,在计算机上打开cab文件可看到包内如图2,包含四个文件: _setup.xml    000delay.000    00Mobile.002   ESRIAR~1.001 , 我把 CabWiz.log ,delay.CAB,delay.inf  这三个文件拷贝到wince5下,正常安装,没有出错,但是安装后的文件只有:Mobile.exe (应用程序)、ESRI.ArcGIS.Mobile.dll, 运行Mobile.exe 还是报出同样的错误,<FONT color=red>无法找到PInvoke DLL "ESRIMobile92CE.dll"   ,</FONT><FONT color=black>安装后没有肯定找不到,但是怎么才能把这个 ESRIMobile92CE.dll 打包呢?还是哪里设置出错了?? 程序开发时的资源管理器如图3。哪里出错呢?<IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/mad.gif" border=0> <IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/mad.gif" border=0> <IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/mad.gif" border=0> <IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/mad.gif" border=0> <IMG src="http://bbs.esrichina-bj.cn/ESRI/images/smilies/default/mad.gif" border=0> </FONT><BR><BR>         图1</DIV>
<DIV class="box postattachlist">
<DL>
<DD>
<P><IMG src="http://bbs.esrichina-bj.cn/ESRI/attachments/forumid_25/20080715_e3d14eb2996f357ca2beizc0XC64AV62.jpg"> </P></DD>
<DT>
<DD>
<P>图2</P>
<P><IMG src="http://bbs.esrichina-bj.cn/ESRI/attachments/forumid_25/20080715_a556e68c9682722a4914IXG51mLCaVAD.jpg"> </P></DD>
<DT>
<DD>
<P>图3</P>
<P><IMG src="http://bbs.esrichina-bj.cn/ESRI/attachments/forumid_25/20080715_5bda31cef748a74cfb38mECD1KgtThqn.jpg"> </P></DD></DL></DIV>
喜欢0 评分0
gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15945
  • QQ554730525
  • 铜币25337枚
  • 威望15352点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2008-07-29 11:34
<P>The ArcGIS Mobile application is contained within a .CAB file called ArcGISMobile.CAB and is located on the web server that you installed ArcGIS Server Manager application onto (\Inetpub\wwwroot\ArcGIS\Mobile\Software). A .CAB file is an installation file for your Windows Mobile device. There are a number of ways to get the .CAB file onto your device and install the application. The method used in this tutorial is for you to pull the .CAB file to the device using the web browser on the device itself.</P>
<P>你没有安装ArcGISMobile.CAB吧,看看帮助噶,说的还比较详细</P>
<P><a href="http://webhelp.esri.com/arcgisserver/9.3/dotNet/tutorial_mobile_editing.htm#deployapp" target="_blank" >http://webhelp.esri.com/arcgisserver/9.3/dotNet/tutorial_mobile_editing.htm#deployapp</A></P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部