Introducing the ASP.NET MVC (Part 3) - Installing the Prerequisites

This is a continuation of my Introduction to ASP.NET MVC series.  As I outlined before this is in an effort to write the book and keep blogging, I decided to write/blog the last chapter, Chapter 2.  I am doing this so I can receive feedback on this chapter as early as possible.  Because this chapter, in my opinion, is probably the most critical of the book, it defines the context around ASP.NET MVC and how it differs from ASP.NET Web Forms, as well as giving a historical perspective of the MVC pattern.

In the next several posts we will cover the following parts of Chapter 2 from the book:

by Nick Berardi

New: $31.49
This item has not yet been released. You may order it now and we will ship it to you when it arrives.

Installing the Prerequisites

To start developing ASP.NET MVC and to run the code in this book, you will need the following prerequisites installed on your system:

  1. Visual Web Developer 2008 Express Edition SP1 http://www.microsoft.com/express/download/
  2. SQL Server 2005 Express Edition http://www.microsoft.com/express/sql/download/
  3. Micorosft.NET Framework 3.5 SP1 http://msdn.microsoft.com/en-us/netframework/
  4. Microsoft ASP.NET MVC http://www.asp.net/mvc/

You can cover prerequisites 1-3 by downloading just the Visual Web Developer 2008 Express Edition installation file, which includes .NET 3.5 SP1 by default and SQL Server 2008 Express Edition as an optional add-on during the install process.

If you have already installed all of the software above, or have an edition of the software that is better you may skip to the Your First ASP.NET MVC Project section.

Installing the Software

Now that all the prerequisites have been downloaded, we can install them to get your development machine ready for the ASP.NET MVC development we will be doing over the course of this book.

The first thing we will want to do is double-click the Visual Web Developer 2008 Express Edition installation file.  Figure 2-3 is the first window you will see of the installation process:

[caption id="attachment_435" align="alignnone" width="506" caption="Figure 2-3"]Figure 2-3[/caption]

Now, click on Next, and you will see the screen shown in Figure 2-4.

[caption id="attachment_436" align="alignnone" width="506" caption="Figure 2-4"]Figure 2-4[/caption]

Now, read the license and accept the agreement and click on Next, and you will see the screen shown in Figure 2-5.

[caption id="attachment_437" align="alignnone" width="506" caption="Figure 2-5"]Figure 2-5[/caption]

With this screen if you don't already have SQL Server 2008 Express Edition installed you will want to check the appropriate options.  Then click Next, and you will see the screen shown in Figure 2-6.

[caption id="attachment_438" align="alignnone" width="506" caption="Figure 2-6"]Figure 2-6[/caption]

Next, click on Install, and you will see the screen shown in Figure 2-7.

[caption id="attachment_439" align="alignnone" width="506" caption="Figure 2-7"]Figure 2-7[/caption]

Next the installer will download the required installation files to properly configure your machine, it may take anywhere between 10 minutes to an unspecified amount of time, depending on your internet connection, to complete the download.  After the download completes you will see a installation screen that looks like Figure 2-8.

[caption id="attachment_440" align="alignnone" width="506" caption="Figure 2-8"]Figure 2-8[/caption]

The last step is the installation of the software.  Your machine may need to be rebooted, so make sure to reboot your machine right away, because Microsoft SQL Server 2008 Express Edition still needs to install.  The installation will be automatically started after Windows restarts.  Figure 2-9 shows what the installation screen looks like after the reboot.

If your machine automatically reboots during the installation process it is because there was a required update that needed to occur before the installation of Visual Web Developer.  If this happens you will need to start the installation process over, and follow the same steps from the beginning of this section.  Don't worry the download process will be much quicker because the downloads have already been cached in Windows temporary directory.

[caption id="attachment_441" align="alignnone" width="506" caption="Figure 2-9"]Figure 2-9[/caption]

When everything has completed successfully you will see the final screen that looks like Figure 2-10.

[caption id="attachment_442" align="alignnone" width="506" caption="Figure 2-10"]Figure 2-10[/caption]

The next thing we want to install is ASP.NET MVC, you can do this by double-clicking the installation file that we downloaded earlier.  Figure 2-11 is what the screen will look like.

[caption id="attachment_443" align="alignnone" width="499" caption="Figure 2-11"]Figure 2-11[/caption]

Now, click on Next, and you will see the screen shown in 2-12.

[caption id="attachment_444" align="alignnone" width="499" caption="Figure 2-12"]Figure 2-12[/caption]

Now, read the license and accept the agreement and click on Next, and you will see the screen shown in Figure 2-13.

[caption id="attachment_445" align="alignnone" width="499" caption="Figure 2-13"]Figure 2-13[/caption]

Next, click on Install, and you will see the screen shown in Figure 2-14.

[caption id="attachment_446" align="alignnone" width="499" caption="Figure 2-14"]Figure 2-14[/caption]

When everything has completed successfully you will see the final screen that looks like Figure 2-15.

[caption id="attachment_447" align="alignnone" width="499" caption="Figure 2-15"]Figure 2-15[/caption]

We are now ready to start developing our first ASP.NET MVC application project.  So let's get started.

This post is licensed under a different license than the rest of my site. Copyright © Wiley Publishing Inc 2009

Nick Berardi

Entrepreneur, Microsoft MVP, ASPInsider, co-founder and CTO of @CaddioApp, Father, and @SeriouslyOpen host