Deploying your desktop application, Building a web application, Running a sample web application – Pitney Bowes MapXtreme User Manual

Page 460

Advertising
background image

Appendix A: How to Create and Deploy a MapXtreme Application

Building a Web Application

MapXtreme v7.1

467

Developer Guide

Optional Step: Add Workspace Manager and GeoDictionary Manager

If you wish, include the MapXtreme utilities Workspace Manager and GeoDictionary Manager in
your package, so your customers can use them. Follow the steps under section

Add a License File

.

Substitute <MapXtreme installation folder>\WorkspaceManager.exe and
GeoDictionaryManager.exe. for MapXtreme.lic.

Build the Setup Project

When you build the setup project, a Setup.exe file is created that contains all the data, compiled
code, and necessary MSMs for the project. This Setup project is part of your MapXtreme solution.

When you are finished building the setup project, then build the solution. When you build the entire
solution, Visual Studio will compile and build the mapping application and then compile and build the
Setup.exe file for installation. Your package is now complete and ready for deployment.

Deploying Your Desktop Application

Now that you have built your desktop application and packaged all the components for deployment,
the final step is to get it onto the production workstation.

To deploy your application, you must deliver the Setup.exe file you created to your end user. You can
copy the Setup.exe file to a CD-ROM or DVD-ROM to provide a means of delivering the file. When
the user launches the Setup.exe executable file on their computer, the installation starts and walks
them through the installation. That’s all there is to it!

Building a Web Application

In this tutorial, we are going to base our application on a Web Thematics sample that is provided
with MapXtreme. The MapXtreme Web samples are Visual Studio Web Application projects. They
contain a fully functioning Web application, include pre-loaded data to support the application, and
handle state management.

Running a Sample Web Application

Let’s start by running the Thematics Web sample to see what it looks like.

1. In Visual Studio, choose File > Open Project and open the folder for the sample ThematicsVB.

The default path to this folder is:C:\Program
Files\MapInfo\MapXtreme\7.x.x\Samples\Web\Features\Thematics\ThematicsVB (where x is the
release number of the version of MapXtreme you are using).

2. Choose Debug>Start Debugging (or press F5 to run the sample in Debug mode).

Advertising