Chapter 19Deploying Your Website

What you will learn in this chapter:

  • How to get your application ready for deployment
  • Using values stored in configuration files
  • Managing multiple environment settings
  • Introduction to Windows Azure, Web Apps, and Azure SQL
  • Publishing your application
  • The importance of validating your deployment

Code Downloads for this Chapter:

The code downloads for this chapter are found at on the Download Code tab. The code is in the chapter 19 download and individually named according to the names throughout the chapter.

Eventually, it is hoped that your application gets to a point where other people want to use it as well. The easiest way to do that is to deploy it to another server where other people can look at it themselves. Also, at some point you will need to deploy the application to a production environment so that it can interact with the public—doing the job that it was designed for.

Moving it from your local development machine to a remote server is a big step. It means you have to ensure that your application can handle multiple environments, and these multiple environments generally require different configurations, including SQL Server connection strings, so you have to manage those different values as part of your deployment strategy.

Part of this whole process is ensuring that you have a remote system to which you can deploy. Once that system is appropriately configured, your application ...

Get Beginning ASP.NET for Visual Studio 2015 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.