ModuleA-InstallSoftware; Updated January 7, 2012; References Appendix A and B


Module A – Install Software


§  Learn to install and use software including: Internet Information Services, Microsoft Visual Studio, and the downloadable files to accompany the textbook.

§  Work with Web Applications including: creating a virtual directory, setting a default page for a web site, and forcing the use of a secure connection for a web page.


Note:  We will cover installation using Windows 7 and VS 2010.  We will not cover Windows XP—see your textbook for that information.


§  Installing and Using Software

§  Installing IIS - Windows 7 and Vista Installation

§  Installing Visual Studio and SQL Server Express

§  Downloading and Installing Textbook Files

§  Installing the Halloween SQL Server Database

§  Using Downloaded Web Apps

§  Work with Web Applications Using IIS

§  Create a Virtual Directory

§  Convert to an Application and Run

§  Force Usage of a Secure Connection for a Page


Installing and Using Software

ASP.NET applications can be developed with either Visual Studio 2010 or Visual Web Developer 2010 Express Edition.

·        Both include a development web server for developing/testing applications.

·        Both also support use of Internet Information Services (IIS) for testing applications prior to porting to production (IIS is the Microsoft Windows Web Server software); however, IIS is part of the Windows operating system and so it is a separate install.

·        Assuming you are using an approved client version of Microsoft Windows (either XP Professional, Vista, or Windows 7), the order of installation is:

1.   First install IIS.

2.   Install Visual Studio including SQL Server Express-you can download and install SQL Server Express separately from Visual Web Developer 2010 Express.

·        Install SQL Server 2010 Express R2

·        You do not need to install Front Page Server Express (FPSE)

·        Download and install SQL Server Management Studio for Express R2.

3.   Download and install the textbook files for the textbook used for this course.

4.   Install application databases (for our class one of these is the Halloween SQL Server database).


Installing IIS - Windows 7 and Vista Installation

ASP.NET applications run under Visual Studio's built-in web development server by default so you do not need to install Microsoft's production web server named Internet Information Services (IIS) to run applications.


In class we will use:

·        the built-in web development server.

·        IIS running on the class CMIS3 server remotely. 

·        We will NOT run IIS on the classroom computers.

·        You need to know how to run under IIS so you'll know how to:

o   port applications from development to production.

o   create remote IIS web sites.

o   use IIS as a file transfer protocol (FTP) server.


To use IIS as a Web server, it must be installed BEFORE Visual Studio is installed.


IIS is available with Windows Server (all versions) and with Windows 7 – it is not available with any Windows Home Edition.  It is also available with Windows Vista and Windows XP, but not the Home Basic Edition or Starter Edition of these operating systems.


If IIS is not installed on your home computer, proceed as follows:

·        Ensure you install IIS BEFORE Visual Studio. 

o   If you’ve already installed Visual Studio, uninstall it. 

o   Follow the procedure in your textbook, figure A-2.

·        Display the Control Panel-Programs link.

·        Click the Turn Windows Features On or Off link (available in the Programs and Features category).  This displays the Windows Features dialog box.  Wait for the dialog box to populate with options.



·        In the Windows Features dialog box select Internet Information Services from the list of components.



·        If you want to configure IIS as a FTP Server, expand the node and select the FTP Publishing Service component.

·        Click OK to complete installation.  It can take several minutes to install the update.

·        If you want to access a web site on a remote computer for development, download FrontPage 2002 Server Extensions (FPSE) for IIS 7.5 from the Microsoft IIS web site ( ) - this is not necessary for our class.

·        You need to reboot your PC at this point.


Installing Visual Studio and SQL Server Express

Visual Studio comes on a DVD or multiple CD-ROMs.  If you have multiple CD-ROMs, then usually two of them contain the Microsoft Visual Studio and SQL Server Express software and three contain the Microsoft Development Network (MSDN) help files.  Facts you need to know about the installation include:

·        All of the latest Windows Service Packs for the operating system must be installed before Visual Studio will install.  These are downloadable from Microsoft.

·        The installation installs Visual Studio, the .NET Framework, the Development Web Server, and SQL Server Express.


Visual Studio is available through the CMIS department – acquiring a free copy of Visual Studio for your home computer is discussed in a separate handout.

·        Insert the DVD or CDROM Disk 1 – the Setup program starts automatically.

·        Click Install Visual Studio 2010 and follow the instructions.

o   This installs Visual Studio, the .NET framework, the development web server, and SQL Server 2008 Express.

o   If you are installing Visual Web Developer 2010 Express Edition, it does NOT install SQL Server 2008 Express – you’ll need to download SQL Server 2008 and install it separately.

·        On the Options page accept Default option – for the Default Environment Settings you can select Web Development Settings.

·        Click the Install Product Documentation link to install the MSDN help files.


SQL Server 2008 Express is a free download of this database management system software from Microsoft.  You should install this on your home PC if you want to use SQL Server databases--optionally, you can complete this course by using the SQL Server databases installed on the CMIS3 departmental server.

·        Download the program from Microsoft (use Google to search for the site and download the correct 32-bit or 64-bit version for your PC) - you should choose the Database with Management Tools option in order to also download the graphical tool called SQL Server Management Studio. 

·        Run the setup program.

·        Follow the details outlined on page 787 of your textbook. 


The SQL Server Management Studio software (SSMS) provides a graphical tool that is easy to use for managing databases.  You can use it for:

·        Attaching an existing set of SQL Server database files to your SQLExpress database instance.

·        Examining data in the tables of a database.

·        Setting up security.

·        Building your own databases.

·        Altering tables.

·        Retrieving and storing data by using SQL as a language or by typing in data in a graphical table-like interface.

·        Backup and recovery.

·        Many other database administration tasks.


Downloading and Installing Textbook Files

Applications used in the Murach’s ASP.NET 4.0 Web Programming with Visual Studio 2010 are downloadable from  A copy of this downloadable file is also available to you on the drive Y: server for the class to save you time downloading.

·        The database for in-class use is named Halloween – both MS Access and SQL Server Express versions of the database are available.

·        Download by clicking the "Download" link from the menu at the top of the page. 

·        Click the Murach's ASP.NET 4.0 Web Programming with VB 2010 link on the page.

·        Click the All Book Files 11.8 Mb self-extracting ZIP link on the page.

·        Click the Download button – register your email address with the site if necessary.

·        The download file is named a4vb_allfiles.exe.  You can save it to a location on your home PC.

·        After the download completes, locate the downloaded file on your drive C: and double-click to install the files by unzipping them.

·        The files will unzip and install to a folder named:  C:\Murach\ASP.NET4_VB

·        Should you desire to use the MS Access version of the Halloween database, it is located in the App_Data directory of each application that uses it inside the Apps folder.  You will also find copies of all databases for the course on the drive Y: server.

·        The Readme file provides information about the download.

Installing the Halloween SQL Server Database

To use the SQL Server version of the Halloween database provided with the textbook, you must attach the database to the SQL Server Express database server on your home computer.

·        Follow the directions in Appendix A, page 789 of your textbook for installing the database files.


Using Downloaded Web Apps

There are two ways to run the downloaded Web Apps for the book.


1.  Open the applications in Visual Studio (or Visual Web Developer), and run the application using the built-in Web Server (we will practice this in class).

·        Start Visual Studio.

·        Open the web site using File-Open Web Site menu.

·        Right-click the application's starting page and select Set As Start Page.

·        Click Debug-Start Debugging to run the application.


2.  Run the application using IIS.

·        Start Visual Studio.

·        Display the New Web Site dialog box with the File-New Web Site menu.

·        Select HTTP for location – click Browse to display Choose Location dialog box.

·        Select Local IIS button (left side of dialog box), select Default Web Site node from the tree displayed and click Create New Virtual Directory button (upper right corner of dialog box) à this displays the New Virtual Directory dialog box.

·        Enter a virtual directory name, enter the path where the web site files are stored and click OK à this returns to the Choose Location dialog box.

·        Select the virtual directory just created – click Open à this returns to the New Web Site dialog box.

·        Click OK – ignore the warning that there is already a web site at the location you specified – select Open the Existing Web Site option and click OK.

·        Right-click the application starting page.  Select Set As Start Page.

·        Run the application using Debug-Start Debugging.


Once a virtual directory for a web application has been created, you can run the application outside of Visual Studio by using a web browser such as Foxfire or Internet Explorer.

1.   Open a web browser window (start Internet Explorer).

2.   For the URL type the following:  //localhost/<virtual directory name>

For example, the Ch03Cart application with the Order.aspx starting page can be run by entering the following URL:



Module B – Web Apps Using IIS

Work with Web Applications Using IIS

The material in this section references Appendix B (for Windows 7 and Windows Vista).  If you use Windows XP (which we do not have installed in our classrooms) refer to Appendix C in your textbook. 


This material is not necessary to develop the web applications used in the book; however, the knowledge provided in this section is important for you to understand in order to program professionally with ASP.NET – you will practice doing this in a later module within this course.

Create a Virtual Directory

IIS has a software graphical interface known as the IIS Management Console.  You can use it to create a virtual directory for a file-system web site (we will practice this numerous times through the semester).

·        Click the Windows Start button, select Control Panel.

·        Double-click Administrative Tools (in normal view you may first need to select the System and Security link).

·        Double-click Internet Information Services to open the IIS Management Console.

·        In the tree display, find and right-click the Default Web Site node – choose  Add Virtual Directory... as shown in this figure – this will start the Virtual Direction Creation Wizard.



·        Enter an alias - this will be the name of the virtual directory within IIS for the application.

·        The application can be physically located at another location to which you can browse with the browse button.

·        Click OK and you will see the directory



Convert to an Application and Run


·        To convert the web's virtual directory to an application, right-click the virtual directory and select Convert to Application.



·        You can run the application by starting up a web browser and entering the URL:






Note:  Possible run-time error on a 64bit machine. 

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine error arises because there is no 64bit version of this provider that runs in a web environment.  The work around is:

·        Open IIS Manager as shown here.

·        Select the Application Pools node and the application pools will display that are used to run apps.

·        Select the DefaultAppPool and then under Actions click the Advanced Settings... link.

·        In the dialog box set the Enable 32-Bit Applications to True.





·        You will practice running the application from IIS later in the course when we learn to use the CMIS3 web server.


Force Usage of a Secure Connection for a Page

For web pages that contain confidential information, you can enforce security so that a page will not display unless the connection is secure.  There are two ways to do this:

1.   Write computer code that executes within a page's Load event (see Chapter 18 of your textbook) to enforce security.

2.   Use the IIS Management Console to enforce security by setting the security properties for a page or for all pages within a web site.


To set security for a web page with IIS:

·        Open the IIS Management Console.

·        Select the web site with the page to be secured.

·        Click the Content View tab and select the page to be secure.

·        Click the Switch to Features View link in the Actions pane.

·        Double-click SSL Settings in the IIS group to display the SSL Settings dialog box-select the Require SSL checkbox.


Note that in order to specify SSL, your computer must have a secure certification installed.  This will be covered in module 18.

End of Notes