The following is an overview of how to perform a copy deployment of the MapDotNet UX Web Services (v7.x thru v9.x) to another server.
Step 1 – Copy the needed directories to your target server
The directories needed to deploy the web services are the ‘Content’, ‘Proj4’ and ‘Service’ folders.
• The ‘Content’ folder contains your mapfiles (.mapx) and the mapfiles.xml.
• The ‘Proj4’ folder contains your projection libraries.
• The ‘Service’ folder contains all of your web services and your web.config.
On a default installation, those folders are located at: C:\Program Files\MapDotNet\[your product version]
Copy the ‘Content’, ‘Proj4’ and ‘Service’ to a location on your target server. All configuration references in the MapDotNet files are relative and you may deploy these files to the path of your choosing. That being said, these folders should all reside in the same folder on your target machine.
Give the Network Service user Full privileges on these folders.
Step 2 – Set the environment variable for the Proj4 libraries
In order for the projection engine to work properly, you must set an Environment Variable pointing to the location of the Proj4 folder.
Variable = PROJ_LIB
Value = <YourTargetDeploymentPath>\Proj4
Step 3 – Create an Application Pool for the Web Services
Open IIS Manager and add a new application pool called ‘MapDotNetUX[your product version]’.
Step 4 – Create a new Application for the Web Services
Add a new application under the desired website called ‘MapDotNetUX[your product version]’.
Step 5 – Configure SSL
If the copy source was not using SSL and the destination will be, replace the <system.serviceModel> section of the web.config file with the following: