Developing Web Applications with the Web ADF  

Licensing and Deployment



Before you deploy a Web Mapping Application to a production server, you may need to install and configure required software on the production server. The GIS software used in the application must be authorized and licensed at an appropriate level. You may also need to set up services and copy data to production servers.

Moving the Web Mapping Application itself involves two types of steps. First, you deploy the website using standard ASP.NET deployment techniques. Second, you may need to make some modifications to the configuration of the website if the GIS server or services used in deployment are different from those used in development.

The instructions below include steps both for configuration for GIS server and services and for website deployment.

Licensing

The Web Mapping Application uses services from one or more GIS servers, which can include ArcGIS Server, ArcIMS and ArcWeb Services. The Web and GIS servers must have appropriate licensing for the ESRI software used. The Application Developer Framework (ADF) installed on the Web server must be licensed in connection with ESRI server software, whether you install the full server software package or just the ADF Runtime. Installations of the Web ADF and server software for development also requires a license. The ESRI Developer Network (EDN) offers licenses of ESRI software specifically for development. See About the EDN Subscription Program for more information on EDN for development purposes.

Below is a brief summary of licensing for ESRI server software. For details, consult the Help for the respective software, or contact your local ESRI account representative.

Deployment steps

  1. Prepare web application during creation and development
  2. Install required software, data and services on production servers
  3. Deploy (copy) the website to the production Web server
  4. Enable the website folder as a Web application in IIS
  5. Update settings for servers, services and identity

1. Prepare web application during creation and development

Some practices to follow as you create your web application:

2. Install software, data and services on production servers

3. Deploy (copy) the website to the production Web server

Options for deploying the website to the deployment Web server include the following. For more information, consult sources on ASP.NET deployment, such as this Microsoft article: Deploying ASP.NET Applications in IIS 6.0.

  1. Copy website (Xcopy deployment)
    • Uses a command prompt to copy the entire folder to another computer.
    • Similar to copy/paste, e.g., with Windows Explorer, but additional options. It is possible to simply use Windows Explorer instead, but you may miss hidden files and attribute settings on files.
    • See Windows Help for Xcopy options and examples, or this Microsoft article on deployment using Xcopy.
  2. VS2005’s Copy Website tool
    • To use this option, you must be able to connect to the deployment server in one of three ways: mapped drive, ftp, or Front Page Extensions. For information on installing Front Page Extensions, please refer to instructions at the Microsoft website.
    • For details on using the Copy Website tool, see the Visual Studio Help topic "Copying Web Sites with the Copy Web Site Tool".
  3. Deployment using a zip file
    • Use if you cannot map a drive to the deployment server, or cannot use the Visual Studio copy website tool. This option may skip hidden files and some attributes of files.
    • When creating a zip file of the website, make sure to include subfolder paths in the zip file.
  4. Installer package
    • If you have created a web application that will be deployed on multiple servers, you might consider creating an installer package for the website. See online resources or books on ASP.NET for information on creating installer packages.

4. Enable the website folder as a Web Application in IIS

The website must be marked in IIS as a web application. How you do this depend on whether the newly copied website folder is within the C:\Inetpub\wwwroot folder or elsewhere on the production machine. In the second case, you must set the website folder as a virtual directory. For further details, see this Microsoft article on creating web applications in IIS.

a) Mark a folder inside C:\Inetpub\wwwroot as an application: 
b) Create a virtual directory for a folder elsewhere on the system:

5. Update settings for servers, services and identity

If the web application on the deployment server will use different server(s) or different service names than the development server, these values must be updated in the web application. Also, if your web application uses ArcGIS Server Local services, then you must modify the identity used by the application.

If the application is secured to require user login, you may need to update the connection information in the web.config file to enable the application to connect to the membership and role provider data. See the information in the page on  ASP.NET Security.

The easiest approach to updating values for servers and services is to use Visual Studio 2005 or Visual Web Developer Express. If available, open the web application and then the default.aspx page, switch to design view, and set the resource manager values (MapResourceManager and any others used, such as GeocodeResourceManager). Use the “smart tag” on the resource manager control to edit the resource properties.

If Visual Studio or VWDE is not available, and the GIS server or service names are different on the deployment server, you must modify the properties manually.

To manually modify the GIS server or services in the Web Mapping Application


To update the ArcGIS Identity

If your Web Mapping Application uses ArcGIS Server Local services, an identity is stored in the website for accessing those services. If a different GIS server or ArcGIS user is used for deployment than for development, you will need to update the identity. This is true even if you use a domain account for the identity and the production computer is a member of the domain.   To update the ArcGIS identity, see instructions in the Help page ASP.NET Identity and Impersonation.