This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
map_suite_web_edition_azure_deployment_guide [2015/08/20 03:08] 127.0.0.1 external edit |
map_suite_web_edition_azure_deployment_guide [2017/03/17 05:04] (current) tgwikiupdate |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Map_Suite_Web_Edition_Azure_Deployment_Guide ====== | + | ====== Map Suite Web Edition Azure Deployment Guide ====== |
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
The purpose of this guide is to show you how to upload your Web Edition Sample to Azure Server, and at the same time install the Web Server Edition to remove the watermark after deployment. It is using 3 key files( one cmd , one exe and one msi). Web Server Edition serial number needs to be upgraded in the cmd file to pass the online validation. | The purpose of this guide is to show you how to upload your Web Edition Sample to Azure Server, and at the same time install the Web Server Edition to remove the watermark after deployment. It is using 3 key files( one cmd , one exe and one msi). Web Server Edition serial number needs to be upgraded in the cmd file to pass the online validation. | ||
Line 6: | Line 8: | ||
===== Download the Sample ===== | ===== Download the Sample ===== | ||
- | {{Filelink}}[[:File:WebEditionSample AzureDepolyment CS 130726.zip|Download This Sample]] //( 22.65 MB)// | + | <faicon fa fa-download fa-lg> {{filehistory:WebEditionSample AzureDepolyment CS 130726.zip|Download This Sample}} //( 22.65 MB)// |
==== Run VS as administrator and create Windows Azure Cloud Service ==== | ==== Run VS as administrator and create Windows Azure Cloud Service ==== | ||
- | {{Figure|Mvc1.png}} | + | {{webedition:Mvc1.png}} |
==== Add a web role ==== | ==== Add a web role ==== | ||
- | {{Figure|2.png}} | + | {{webedition:2.png}} |
==== Add a shapefile to the project and write code as following to display it on the map ==== | ==== Add a shapefile to the project and write code as following to display it on the map ==== | ||
- | <source lang="csharp"> | + | <code csharp> |
Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF")); | Map1.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.FromHtml("#E5E3DF")); | ||
Map1.CurrentExtent = new RectangleShape(-131.22, 55.05, -54.03, 16.91); | Map1.CurrentExtent = new RectangleShape(-131.22, 55.05, -54.03, 16.91); | ||
Line 38: | Line 40: | ||
Map1.CustomOverlays.Add(overlay); | Map1.CustomOverlays.Add(overlay); | ||
- | </source> | + | </code> |
- | {{Figure|WebEdition Sample Code.png}} | + | {{webedition:WebEdition Sample Code.png}} |
- | {{Figure|WebEdition Sample Project.png}} | + | {{webedition:WebEdition Sample Project.png}} |
==== Copy the 3 files to the project folder and reference them into your project ==== | ==== Copy the 3 files to the project folder and reference them into your project ==== | ||
- | {{Figure|3.png}} | + | {{webedition:3.png}} |
==== Set the 3 files’ Build Action to "Content" and Copy to Output Directory to "Copy Always" ==== | ==== Set the 3 files’ Build Action to "Content" and Copy to Output Directory to "Copy Always" ==== | ||
- | {{Figure|4.png}} | + | {{webedition:4.png}} |
==== Change the MapSuiteWebServerAzureInstaller.cmd by typing in the license key, then rebuild ==== | ==== Change the MapSuiteWebServerAzureInstaller.cmd by typing in the license key, then rebuild ==== | ||
- | {{Figure|5.png}} | + | {{webedition:5.png}} |
==== Add a new node to the ServiceDefinition.csdef under WebRole node as following ==== | ==== Add a new node to the ServiceDefinition.csdef under WebRole node as following ==== | ||
- | <Startup><Task commandLine="MapSuiteWebServerAzureInstaller.cmd" executionContext="elevated" taskType="simple"></Task></Startup> | + | <html> |
+ | <Startup><Task commandLine="MapSuiteWebServerAzureInstaller.cmd" executionContext="elevated" taskType="simple"></Task></Startup> | ||
+ | </html> | ||
- | {{Figure|6.png}} | + | {{webedition:6.png}} |
==== Publish it, the Web server edition should have been installed and no watermark will be shown on the Map Suite Map. ==== | ==== Publish it, the Web server edition should have been installed and no watermark will be shown on the Map Suite Map. ==== | ||
- | {{Figure|WebEdition Deploy to AzureCloud.png}} | + | {{webedition:WebEdition Deploy to AzureCloud.png}} |