Select to view content in your preferred language

Deploying mobile runtime

4420
14
08-23-2010 01:30 PM
BrianGustafson
Occasional Contributor
How do I deploy the mobile runtime with a WPF application?
0 Kudos
14 Replies
MelindaFrost
Frequent Contributor
Are you deploying to windows or a mobile device?
If mobile device, need to run the AGMRuntime.CAB on the device first.

And if its windows, you should be able to follow the instructions in this link
http://help.arcgis.com/en/arcgismobile/10.0/apis/ArcGISMobile/webframe.html

Technically you just need to make sure the ESRI mobile dll is included in the installer. But I keep getting an error message after I run the application on the target machine. Its a vague error about the application has to close. If I actually install ArcGIS Mobile, the application will run. I tried the steps with the walk-through mobile sdk windows application example (no wpf), and had the same error. These steps worked in 9.3.1 but I can't seem to get it to work for 10.

Did you have any luck?
0 Kudos
BrianGustafson
Occasional Contributor
That is the same problem that I am having.  I included all of the dlls in the installer but when I run the application it gives me the same error you got that the program needs to close.  If I install mobile on the computer from the disk it all works fine.
0 Kudos
AkhilParujanwala
Regular Contributor
I am not sure if this is the same problem, but I had problem installing ArcGIS Mobile 10.

Possible Solution:

1) Install ArcGIS Mobile 10 on your computer (already done for most people).

2) Install MS Active Sync 4.5 or higher (provided you are using Windows XP) Otherwise get Mobile Device Center (or w/e it is called for Vista and Win7)

3) Run ArcGIS Mobile 10 on the computer

4) Then plug in your Mobile Device into the computer via USB and ArcGIS Mobile 10 will automatically install on the device.

Note: I did it this way and I didn't have to install the runtime.

5) Run your application/project using ArcGIS Mobile 10.

6) Make sure you have installed the correct compact framework. I am using Compact Framework 2.0

Let me know if this helps.
0 Kudos
MelindaFrost
Frequent Contributor
So, deploying to a mobile device works fine with 10.
But deploying to windows- get error and application has to close unless install Mobile SDK. This is so weird. Technically bundling the dlls in the installer is all I have ever had to do with any window application (ESRI or non-ESRI). But seems that somehow the application still wants the dlls registered in the GAC and flat out ignores the ones in the installed directory.
At this point, I am submitting a support ticket to ESRI. I will let you know what they come say.
0 Kudos
AkhilParujanwala
Regular Contributor
Hi buddha,

I have successfully deployed out-of the-box solutions to both Mobile Devices (Trimble Nomad using Window Mobile 6 Pro) and Tablets (Trimble Yuma using Vista).

For the Yuma, I just installed the ArcGIS Mobile, no SDK. Ran ArcGIS Mobile 10 and then I was able to connect to my ArcGIS server and download the created projects.

I'm guessing you are having difficulties running ArcGIS Mobile 10 on a tablet because you may need the runtime? I don't beleive I installed it, but I am not sure. I will test again, on an another Yuma later this week and let you know.
0 Kudos
MelindaFrost
Frequent Contributor
These are the instructions right from Mobile SDK help online:
http://help.arcgis.com/en/arcgismobile/10.0/apis/ArcGISMobile/webframe.html

The following steps show you how to create a deployment package for a windows based mobile application using the windows installer.

Open your windows based mobile project in Visual Studio.
Right-click on your solution in the Solution Explorer . Click Add then New Project.
In the Add New Project dialog box, in the Project Types pane, open the Other Project Types node, click Setup and Deployment Projects, then click Setup Wizard in the Templates pane.
Click OK to close the dialog box.
The Setup Wizard dialog box opens.
Click Next when you have read the introduction screen.
On the Choose Project Type panel, select Create a setup for a Windows application and click Next.
On the Choose project outputs to include panel, check Primary output from.... and click Next.
On the Choose files to include panel, click Add , then navigate to the bin output directory for your compiled application. Select the native windows mobile library (ESRIMobile92.dll) and click Open. The file is added to the panel. Click Next.
Review the Create Project panel and click Finish.
The setup project is added to your solution.
Examine the properties for the setup project. The Manufacturer and ProductName properties determine the program files menu and submenu items when the application is installed. Change these to meet your requirements.
Build the solution, click Build from the main menu then Build Solution.


What I did for 9.3.1 mobile, is follow these instruction and just use 9.3. mobile dll instead of th 92. Including them in the installer negatites the extra step that you are doing of running ArcGIS Mobile on each of your tablets. These instructions worked in 9.3.1. No problem.
Go to mobile 10, these instructions do not work. Let me state again- these instructions worked in 9.2 and 9.3.1 mobile deployment to windows.
This extra step of running ArcGIS mobile 10 on each machine is a work around to getting the application to work.
0 Kudos
ChrisCarter
Deactivated User

At this point, I am submitting a support ticket to ESRI. I will let you know what they come say.



buddha,

Did you submit a ticket to ESRI, and what was their response?

I need to deploy a mobile WPF app through ClickOnce, and having to install the Mobile App first would be a royal pain.

-Chris
0 Kudos
MelindaFrost
Frequent Contributor
Yes I have submitted the ticket and not getting anywhere yet with it. I need to set aside a whole day and build multiple examples in 10 and 9.3.1 to try and show ESRI what is going on.
When I get something more out of them I will post it.
0 Kudos
MelindaFrost
Frequent Contributor
I received the instructions for deploying to windows for 10. Apparently there is 4 dll libaries you need to include and a symbol folder if you are using ESRI streetmap. See attachment for how to deploy.
Yeah- don't have to install runtime on each machine.
0 Kudos