Pre-Assessment Questions

You might also like

Download as pps, pdf, or txt
Download as pps, pdf, or txt
You are on page 1of 22

Deploying an ASP.

NET Web Application

Pre-Assessment Questions
1. The process of installing an application from the development computer to
the production computer is known as:

a. Testing
b. Deployment
c. Implementation
d. Design

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 1 of 22


Deploying an ASP.NET Web Application

Pre-Assessment Questions (Contd.)


2. Identify the technique used to deploy ActiveX components.
a. XCopy Deployment
b. NoTouch
c. Microsoft Windows Installer
d. Cabinet-file

3. Which of the following is a property of the StatusBar control?


a. en-uk
b. uk-en
c. unitedkingdom-en
d. uk-english

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 2 of 22


Deploying an ASP.NET Web Application

Pre-Assessment Questions (Contd.)


4. The XCOPY command use argument /H option for:
a. This option copies both hidden and system files. 
b. This option overwrites files marked as read only.
c. This option copies directories, subdirectories, and files of the source
argument, including empty ones.
d. This option tells XCOPY to assume that the destination is a directory
and create it if it does not already exist.

5. For the Visual Studio.Net Copy Project method, which special software
should be installed on the remote server?
a. Microsoft Front Page
b. Microsoft Outlook
c. Microsoft FrontPage Server Extensions
d. Microsoft Excel

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 3 of 22


Deploying an ASP.NET Web Application

Solutions to Pre–Assessment
Questions
1. b. Deployment
2. d. Cabinet-file
3. a. en-uk
4. a. This option copies both hidden and system files. 
5. c. Microsoft FrontPage Server Extensions

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 4 of 22


Deploying an ASP.NET Web Application

Objectives
In this lesson, you will learn to:

• Identify deployment techniques to deploy an application


• Identify types of deployment projects
• Creating a Web Setup Project using the Setup Wizard
• Customize a deployment project using deployment editors
• Deploy IIS settings along with an ASP.NET deployment project

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 5 of 22


Deploying an ASP.NET Web Application

Introduction to Deployment
• There are four phases in the development of an application:

• Designing
• Implementing
• Testing
• Deployment

• Once the designing, implementing and testing phases are over, the application
is ready for production.

• Deployment can be defined as the process of moving the application from the
development computer to the production computer.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 6 of 22


Deploying an ASP.NET Web Application

Introduction to Deployment (Contd.)


• Technically, deployment consists of the following two important processes:

• Assembling Component

• Creating application structure

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 7 of 22


Deploying an ASP.NET Web Application

Introduction to Deployment (Contd.)


• Assembling Component

• Involves identification of all the components of an application.


• Each component is analyzed to identify their dependencies on further
components.

• Creating application structure

• Involves identification of the structure in which the application


components must be arranged on the client computer for the application
to run successfully.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 8 of 22


Deploying an ASP.NET Web Application

Introduction to Deployment (Contd.)


• The four different deployment techniques available for deploying an application
from a development server to the production server are as follows:

• XCopy deployment
• No-touch
• Microsoft Windows® Installer (.MSI)
• Cabinet-file (.CAB)

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 9 of 22


Deploying an ASP.NET Web Application

Introduction to Deployment (Contd.)


• XCopy deployment
• Is a process used to copy all the files from one location to another using
MS-Dos Xcopy command.

• No-touch
• Is a techniques used to deploy an application from the Internet.

• Microsoft Windows® Installer (.MSI)


• Is a technique used to pack the application components into a Windows
Installer or an .MSI file.

• Cabinet-file (.CAB)
• Is a technique used to pack the application components into a cabinet file.
• This techniques is commonly used to deploy ActiveX components.
©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 10 of 22
Deploying an ASP.NET Web Application

Types of Deployment Project


• The various types of deployment projects available in Visual Studio .NET are as
follows:

• Setup project
• Web Setup project
• Merge module project
• CAB project

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 11 of 22


Deploying an ASP.NET Web Application

Types of Deployment Project (Contd.)


• Setup Project
• The MSI files created by this process when it gets executed, all the
component are copied into the program file folder of the destination folder.

• Web Setup Project


• The MSI file created by this process when it gets executed, all the
component are copied into virtual root directory on the destination web
server.

• Merge Module Project


• It allows multiple applications to share the setup code and solve the
problem related to versioning of component.

• Cab Project
• This kind of Deployment Project helps you to generate CAB files to bundle
©NIIT the ActiveX Web
Developing controls.
Applications Using ASP.NET Lesson 5B / Slide 12 of 22
Deploying an ASP.NET Web Application

Creating a Web Setup Project


• An ASP.NET application needs to be distributed to the clients after finishing the
development.

• For the distribution of an application, Web Setup project is used which


automatically configures the application on the production site.

• The Web Setup project creates an installer for ASP.NET web application which
creates a virtual directory and installs all the necessary files on the target
computer.

• A Web Setup project can be created:


• By using a Setup Wizard
• Manually

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 13 of 22


Deploying an ASP.NET Web Application

Working With Deployment Editor


• The deployment editors are used to:
• Specify the setting, such as defining the location where files should be
installed on the target machine.
• Customize the user interface that is provided at the time of installing the
application.

• A deployment project contains the following six editors:


• File System Editor
• Registry Editor
• File Types Editor
• User Interface Editor
• Custom Actions Editor
• Launch Conditions Editor
• File System Editor

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 14 of 22


Deploying an ASP.NET Web Application

Working With Deployment Editor


(Contd.)
• File System Editor
• Adds or deletes project outputs, components and other files to a
deployment project.

• Registry Editor
• Specifies the registry keys and values to be added to already existing
keys in the registry file of the target computer.

• File Types Editor


• Helps to associate files of the application with the file types and
extensions. It also specifies the actions that can be performed on the file
type of a particular file

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 15 of 22


Deploying an ASP.NET Web Application

Working With Deployment Editor


(Contd.)
• User Interface Editor
• Specifies the interface to be displayed on a target computer at the
installation time.

• Custom Action Editor


• Specifies the additional tasks to follow the installation process on the
target computer.

• Launch Condition Editor


• Identifies the conditions required for installation on the target computer.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 16 of 22


Deploying an ASP.NET Web Application

Deployment Guidelines For ASP.NET


Applications
• The following guidelines should be followed to address the deployment issues:

• Deploy ASP.NET Application Files


• Deploy the Internet Information Server Settings
• Deploy Secure Sockets Layer Encryption

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 17 of 22


Deploying an ASP.NET Web Application

Demonstration-Deploying a Web
Application Using Web Setup Project
• Problem Statement

• You have created a Web application named


FormAuthenticationDemo. The application needs to be distributed
to the client therefore, create a setup package to deploy the
application.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 18 of 22


Deploying an ASP.NET Web Application

Demonstration-Deploying a Web
Application Using Web Setup Project
(Contd.)
• Solution

1. Open the FormAuthentictionDemo Web Application.


2. Create a deployment project.
3. Add application files to the deployment project.
4. Set the properties for the installer and build the solution.
5. Deploy and Access the Web application.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 19 of 22


Deploying an ASP.NET Web Application

Summary
In this lesson, you learned that:

• Deployment consist of two important process:


• Assembling a component
• Creating an application structure
• Assembling a component involves the identification of all the
components of an application. Then, each component is analyzed to
identify its dependencies on further components.
• A web application can be deployed in the following ways:
• XCopy deployment
• No-touch
• MSI
• CAB

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 20 of 22


Deploying an ASP.NET Web Application

Summary (Contd.)
• The .NET framework has four deployment project for deploying a complex
project:
• SetUp Projects
• Web Setup Project
• MergeModule Project
• Cab Project

• A Web setup project can be developed in two ways:


• Using the Setup Wizard
• Manually
• Deployment editors are used to specify the setting for the user interface and
the location where the project will be installed.

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 21 of 22


Deploying an ASP.NET Web Application

Summary (Contd.)
• Deployment project have six type of Deployment editors:
• File System Editor
• Registry Editor
• File Types Editor
• User Interface Editor
• Custom Actions Editor
• Launch Conditions Editor

©NIIT Developing Web Applications Using ASP.NET Lesson 5B / Slide 22 of 22

You might also like