SlideShare a Scribd company logo
1 of 16
Developing Web Applications Using ASP.NET
In this session, you will learn to:
Describe how to use the Copy Web Site utility to deploy a Web
application
Describe how to use the Publish Web Site utility to precompile
and deploy a Web application
Describe how to build Windows Installer packages for
deploying a Web application
Deploy a Web application by using the Copy Web Site utility
Precompile and deploy a Web application by using the Publish
Web Site utility
Build and run a Windows Installer setup application for
deploying a Web application
Objectives
Developing Web Applications Using ASP.NET
The Copy Web Site utility enables the deployment of a Web
site quickly and easily by copying files between a source
site and a remote site.
The source site is the site that is currently opened in Visual
Studio.
The remote site is the site where files need to be copied.
The Copy Web Site utility enables you to specify the
destination for the copy operation.
The destination can be any of the following locations:
A file-based Web site
A local IIS Web site
An FTP site
A remote Web site
The Copy Web Site Utility
Developing Web Applications Using ASP.NET
Copying Source Files to the Destination:
The Copy Web Site utility copies the selected files to the
destination.
Any source files that do not compile, will also be deployed.
However, the site will not run successfully.
Any type of source files used to build the Web site can be
copied. This includes:
ASPX files
Code-behind files
Other Web files (such as HTML files and images)
Files can be edited at the destination site after copy operation.
Other users can also view and edit the copied source files.
The Copy Web utility is especially useful in situations in which
you cannot open files from the remote site to edit them.
The Copy Web Site Utility (Contd.)
Developing Web Applications Using ASP.NET
The Copy Web Site Utility (Contd.)
The following figure shows the Copy Web screen of the
Copy Web Site Utility:
Developing Web Applications Using ASP.NET
Synchronizing Source and Copied Files:
Source files can be synchronized with the deployed files after
deployment.
Copy Web tool maintains information about state of the file on
both source and destination site.
The status of all the files is displayed both in the source
application and in the deployed Web site.
If a file has changed in either location, it can be synchronized
to keep source and destination files up-to-date.
Possible status of a file can be:
Unchanged
Changed
New
Deleted
The Copy Web Site Utility (Contd.)
Developing Web Applications Using ASP.NET
The Publish Web Site utility enables the deployment of a
compiled Web site without needing to copy the source files.
The destination for the publish operation can be any of the
following types:
A file-based Web site
A local IIS Web site
An FTP site
A remote Web site
The source code in the Web site is compiled into DLL
assemblies before deployment. This is called
precompilation.
If the source code contains errors, the precompilation will
fail and will prevent the site from being published.
The Publish Web Site Utility
Developing Web Applications Using ASP.NET
After publishing a Web site, you cannot make any changes
to the source code at the destination site because it is
deployed in the form of DLL assemblies.
If after publishing, you change the source code in the source
Web application, you need to re-publish the site.
You can publish a site with or without markup protection.
If you publish a site with markup protection, users will not be
able to edit the ASPX files at the destination site.
When you publish a site with markup protection:
Markup is removed from the ASPX file.
DLL assemblies that contain the definitions of the markup for
each page are created.
The ASPX files and the DLLs are deployed on the server,
where the ASPX files act as stubs for the DLL versions of the
page.
The Publish Web Site Utility (Contd.)
Developing Web Applications Using ASP.NET
If you publish a site without markup protection, you can edit
the markup for the ASPX pages at the destination site.
If you publish a site with markup protection, any changes to
the markup of an ASPX page would require you to modify
the source Web application and then re-publish the site.
Advantages of publishing a Web site over simply copying
the Web site:
Compilation errors and errors in configuration files are
identified during precompilation.
Initial response speed for individual pages is faster because
the pages are already compiled.
No source code is deployed with the site providing some
security to the files.
The Publish Web Site Utility (Contd.)
Developing Web Applications Using ASP.NET
You can create a Windows Installer package to package
and deploy a Web application.
To create a Setup application for a Web application, you
need to add a Web Setup project to the Visual Studio 2005
solution that contains the Web site.
You can add the contents of the Web site to the Web Setup
project.
The setup project creates an MSI file that contains the
output of the Web site.
You can also create a bootstrap program, setup.exe, that
contains Windows Installer files that ensure that the MSI can
run on the target computer .
Windows Installer Setup Packages
Developing Web Applications Using ASP.NET
Contents of an MSI Package:
Packaged version of the Web files to be deployed.
Definitions of the following setup elements:
The user interface for the installer
Registry settings to be deployed with the Web application (if
required)
Custom actions to run as part of the setup
Launch conditions that control installation
Windows Installer Setup Packages (Contd.)
Developing Web Applications Using ASP.NET
Deploying the MSI Package:
After building the Windows Installer package, you can deploy
the Web site by coping the installation files to the destination
computer.
If you include the bootstrap program in the Web Setup project,
you can run setup.exe and step through the setup application
to install the Web site.
If you did not include the bootstrap program in the Web Setup
project, you can run the MSI file to install the Web site.
Windows Installer Setup Packages (Contd.)
Developing Web Applications Using ASP.NET
Problem Statement:
You are a developer in the Adventure Works organization, a
fictitious bicycle manufacturer. You have been asked to assist
in the development of the Business-to-Consumer (B2C) Web
application and a related Business-to-Employee (B2E) extranet
portal.
Decisions on the design of the application have already been
made. You have been asked to carry out a number of specific
tasks in order to implement various elements of this design. As
part of the first phase of the B2C development, you have been
asked to investigate the deployment options for the Adventure
Works Web application.
Demo: Deploying a Web Application
Developing Web Applications Using ASP.NET
Solution:
You need to perform following tasks:
1. Deploy a Web Application by Using the Copy Web Site Utility
a. Open the Adventure Works Web site.
b. Create a connection to a new virtual directory as the destination for
copying the Web site.
c. Select files to copy to the destination Web site.
d. Browse to the deployed Web site.
e. Edit code for a deployed Web site file.
f. Edit markup for a deployed Web site file.
g. Browse to the modified deployed Web site.
h. Synchronize the source files with the edited deployed Web site.
Demo: Deploying a Web Application (Contd.)
Developing Web Applications Using ASP.NET
2. Precompile and Deploy a Web Application by Using the Publish
Web Site Utility
a. Install the SQL Server provider database.
b. Configure the ASP.NET SQL Server membership provider.
c. Create the membership registration page.
d. Create the membership update page.
3. Building a Windows Installer Package for Deploying a Web
Application
a. Open the Adventure Works Web site.
b. Add and configure a Web Setup project to the solution.
c. Design the user interface for the Windows Installer package.
d. Build the Windows Installer package.
e. Run the Windows Installer package.
Demo: Deploying a Web Application (Contd.)
Developing Web Applications Using ASP.NET
Summary
In this session, you learned that:
Copy Web Site utility enables the deployment of a Web site by
copying the source files for the Web application.
Files at source and destination can be synchronized using
Copy Web Site utility.
The Publish Web Site utility enables the deployment of a
compiled Web site without needing to copy the source files.
In precompiling using Publish Web Site utility, application is
built and the source code in the Web site is compiled into DLL
assemblies.
Windows Installer packages can be created to package and
deploy a Web application.
Developing Web Applications Using ASP.NET
Summary (Contd.)
The Setup project creates an MSI file that contains the output
of the Web site.
Bootstrap program can also be created using Setup project.
After Windows Installer package has been built, Web site can
be deployed by coping installation files to the destination
computer.

More Related Content

What's hot

SharePoint Web part programming
SharePoint Web part programmingSharePoint Web part programming
SharePoint Web part programmingQuang Nguyễn Bá
 
Fox in cloud az tutorial en
Fox in cloud az tutorial enFox in cloud az tutorial en
Fox in cloud az tutorial enHidayat Roesli
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23Niit Care
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23Vivek chan
 
Getting started-with-zend-framework
Getting started-with-zend-frameworkGetting started-with-zend-framework
Getting started-with-zend-frameworkNilesh Bangar
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22Niit Care
 
Custom theme creation websphere portal 8.5
Custom theme creation websphere portal 8.5Custom theme creation websphere portal 8.5
Custom theme creation websphere portal 8.5michele buccarello
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 serversMark Myers
 
How to WordPress: the basics, part 1
How to WordPress:  the basics, part 1How to WordPress:  the basics, part 1
How to WordPress: the basics, part 1R-Cubed Design Forge
 
( 2 ) Office 2007 Create A Portal
( 2 ) Office 2007   Create A Portal( 2 ) Office 2007   Create A Portal
( 2 ) Office 2007 Create A PortalLiquidHub
 
IBM Connections mail with exchange backend
IBM Connections mail with exchange backendIBM Connections mail with exchange backend
IBM Connections mail with exchange backendmichele buccarello
 
Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcatVenkat Gowda
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Niit Care
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Niit Care
 
Joomla Day MN 2014 - Brad Markle
Joomla Day MN 2014 - Brad MarkleJoomla Day MN 2014 - Brad Markle
Joomla Day MN 2014 - Brad MarkleInMotion Hosting
 

What's hot (17)

SharePoint Web part programming
SharePoint Web part programmingSharePoint Web part programming
SharePoint Web part programming
 
Fox in cloud az tutorial en
Fox in cloud az tutorial enFox in cloud az tutorial en
Fox in cloud az tutorial en
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
Getting started-with-zend-framework
Getting started-with-zend-frameworkGetting started-with-zend-framework
Getting started-with-zend-framework
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
 
Custom theme creation websphere portal 8.5
Custom theme creation websphere portal 8.5Custom theme creation websphere portal 8.5
Custom theme creation websphere portal 8.5
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
How to WordPress: the basics, part 1
How to WordPress:  the basics, part 1How to WordPress:  the basics, part 1
How to WordPress: the basics, part 1
 
Wordpress Basics
Wordpress BasicsWordpress Basics
Wordpress Basics
 
( 2 ) Office 2007 Create A Portal
( 2 ) Office 2007   Create A Portal( 2 ) Office 2007   Create A Portal
( 2 ) Office 2007 Create A Portal
 
IBM Connections mail with exchange backend
IBM Connections mail with exchange backendIBM Connections mail with exchange backend
IBM Connections mail with exchange backend
 
Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcat
 
Writing first-hudson-plugin
Writing first-hudson-pluginWriting first-hudson-plugin
Writing first-hudson-plugin
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
Joomla Day MN 2014 - Brad Markle
Joomla Day MN 2014 - Brad MarkleJoomla Day MN 2014 - Brad Markle
Joomla Day MN 2014 - Brad Markle
 

Viewers also liked

02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Vivek chan
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14Vivek chan
 
CyberLab Training Division
CyberLab Training DivisionCyberLab Training Division
CyberLab Training DivisionVivek chan
 
CyberLab Development Division
CyberLab Development Division CyberLab Development Division
CyberLab Development Division Vivek chan
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01Vivek chan
 
Net framework session03
Net framework session03Net framework session03
Net framework session03Vivek chan
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19Vivek chan
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05Vivek chan
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16Vivek chan
 
CyberLab Work-EX Program
CyberLab Work-EX ProgramCyberLab Work-EX Program
CyberLab Work-EX ProgramVivek chan
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10Vivek chan
 
CyberLab Vehicle Tracking System
CyberLab Vehicle Tracking SystemCyberLab Vehicle Tracking System
CyberLab Vehicle Tracking SystemVivek chan
 
03 intel v_tune_session_04
03 intel v_tune_session_0403 intel v_tune_session_04
03 intel v_tune_session_04Vivek chan
 
What is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsWhat is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsVivek chan
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversVivek chan
 
Complete Osi Model Explained
Complete Osi Model ExplainedComplete Osi Model Explained
Complete Osi Model ExplainedVivek chan
 

Viewers also liked (16)

02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
 
CyberLab Training Division
CyberLab Training DivisionCyberLab Training Division
CyberLab Training Division
 
CyberLab Development Division
CyberLab Development Division CyberLab Development Division
CyberLab Development Division
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
 
CyberLab Work-EX Program
CyberLab Work-EX ProgramCyberLab Work-EX Program
CyberLab Work-EX Program
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
 
CyberLab Vehicle Tracking System
CyberLab Vehicle Tracking SystemCyberLab Vehicle Tracking System
CyberLab Vehicle Tracking System
 
03 intel v_tune_session_04
03 intel v_tune_session_0403 intel v_tune_session_04
03 intel v_tune_session_04
 
What is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for KidsWhat is Robotics - Robotics Concept Explained for Kids
What is Robotics - Robotics Concept Explained for Kids
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking drivers
 
Complete Osi Model Explained
Complete Osi Model ExplainedComplete Osi Model Explained
Complete Osi Model Explained
 

Similar to 09 asp.net session13

Similar to 09 asp.net session13 (20)

09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Web techh
Web techhWeb techh
Web techh
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
Walkthrough asp.net
Walkthrough asp.netWalkthrough asp.net
Walkthrough asp.net
 
important DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And Interviewsimportant DotNet Questions For Practicals And Interviews
important DotNet Questions For Practicals And Interviews
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Asp.net w3schools
Asp.net w3schoolsAsp.net w3schools
Asp.net w3schools
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]
 
Intro to asp.net mvc 4 with visual studio
Intro to asp.net mvc 4 with visual studioIntro to asp.net mvc 4 with visual studio
Intro to asp.net mvc 4 with visual studio
 
Asp net mvc
Asp net mvcAsp net mvc
Asp net mvc
 
Enterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility AnalysisEnterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility Analysis
 
Asp.net
Asp.netAsp.net
Asp.net
 
My Updated Resume
My Updated ResumeMy Updated Resume
My Updated Resume
 
As pnet
As pnetAs pnet
As pnet
 

More from Vivek chan

Deceptive Marketing.pdf
Deceptive Marketing.pdfDeceptive Marketing.pdf
Deceptive Marketing.pdfVivek chan
 
brain controled wheel chair.pdf
brain controled wheel chair.pdfbrain controled wheel chair.pdf
brain controled wheel chair.pdfVivek chan
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Vivek chan
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasuVivek chan
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsVivek chan
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek chan
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek chan
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Vivek chan
 
Net framework session01
Net framework session01Net framework session01
Net framework session01Vivek chan
 
Net framework session02
Net framework session02Net framework session02
Net framework session02Vivek chan
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02Vivek chan
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13Vivek chan
 
07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10Vivek chan
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22Vivek chan
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Vivek chan
 
08 asp.net session11
08 asp.net session1108 asp.net session11
08 asp.net session11Vivek chan
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08Vivek chan
 

More from Vivek chan (17)

Deceptive Marketing.pdf
Deceptive Marketing.pdfDeceptive Marketing.pdf
Deceptive Marketing.pdf
 
brain controled wheel chair.pdf
brain controled wheel chair.pdfbrain controled wheel chair.pdf
brain controled wheel chair.pdf
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using Thoughts
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
 
Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant Vivek Chan | Technology Consultant
Vivek Chan | Technology Consultant
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
 
Net framework session01
Net framework session01Net framework session01
Net framework session01
 
Net framework session02
Net framework session02Net framework session02
Net framework session02
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
 
07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
08 asp.net session11
08 asp.net session1108 asp.net session11
08 asp.net session11
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 

09 asp.net session13

  • 1. Developing Web Applications Using ASP.NET In this session, you will learn to: Describe how to use the Copy Web Site utility to deploy a Web application Describe how to use the Publish Web Site utility to precompile and deploy a Web application Describe how to build Windows Installer packages for deploying a Web application Deploy a Web application by using the Copy Web Site utility Precompile and deploy a Web application by using the Publish Web Site utility Build and run a Windows Installer setup application for deploying a Web application Objectives
  • 2. Developing Web Applications Using ASP.NET The Copy Web Site utility enables the deployment of a Web site quickly and easily by copying files between a source site and a remote site. The source site is the site that is currently opened in Visual Studio. The remote site is the site where files need to be copied. The Copy Web Site utility enables you to specify the destination for the copy operation. The destination can be any of the following locations: A file-based Web site A local IIS Web site An FTP site A remote Web site The Copy Web Site Utility
  • 3. Developing Web Applications Using ASP.NET Copying Source Files to the Destination: The Copy Web Site utility copies the selected files to the destination. Any source files that do not compile, will also be deployed. However, the site will not run successfully. Any type of source files used to build the Web site can be copied. This includes: ASPX files Code-behind files Other Web files (such as HTML files and images) Files can be edited at the destination site after copy operation. Other users can also view and edit the copied source files. The Copy Web utility is especially useful in situations in which you cannot open files from the remote site to edit them. The Copy Web Site Utility (Contd.)
  • 4. Developing Web Applications Using ASP.NET The Copy Web Site Utility (Contd.) The following figure shows the Copy Web screen of the Copy Web Site Utility:
  • 5. Developing Web Applications Using ASP.NET Synchronizing Source and Copied Files: Source files can be synchronized with the deployed files after deployment. Copy Web tool maintains information about state of the file on both source and destination site. The status of all the files is displayed both in the source application and in the deployed Web site. If a file has changed in either location, it can be synchronized to keep source and destination files up-to-date. Possible status of a file can be: Unchanged Changed New Deleted The Copy Web Site Utility (Contd.)
  • 6. Developing Web Applications Using ASP.NET The Publish Web Site utility enables the deployment of a compiled Web site without needing to copy the source files. The destination for the publish operation can be any of the following types: A file-based Web site A local IIS Web site An FTP site A remote Web site The source code in the Web site is compiled into DLL assemblies before deployment. This is called precompilation. If the source code contains errors, the precompilation will fail and will prevent the site from being published. The Publish Web Site Utility
  • 7. Developing Web Applications Using ASP.NET After publishing a Web site, you cannot make any changes to the source code at the destination site because it is deployed in the form of DLL assemblies. If after publishing, you change the source code in the source Web application, you need to re-publish the site. You can publish a site with or without markup protection. If you publish a site with markup protection, users will not be able to edit the ASPX files at the destination site. When you publish a site with markup protection: Markup is removed from the ASPX file. DLL assemblies that contain the definitions of the markup for each page are created. The ASPX files and the DLLs are deployed on the server, where the ASPX files act as stubs for the DLL versions of the page. The Publish Web Site Utility (Contd.)
  • 8. Developing Web Applications Using ASP.NET If you publish a site without markup protection, you can edit the markup for the ASPX pages at the destination site. If you publish a site with markup protection, any changes to the markup of an ASPX page would require you to modify the source Web application and then re-publish the site. Advantages of publishing a Web site over simply copying the Web site: Compilation errors and errors in configuration files are identified during precompilation. Initial response speed for individual pages is faster because the pages are already compiled. No source code is deployed with the site providing some security to the files. The Publish Web Site Utility (Contd.)
  • 9. Developing Web Applications Using ASP.NET You can create a Windows Installer package to package and deploy a Web application. To create a Setup application for a Web application, you need to add a Web Setup project to the Visual Studio 2005 solution that contains the Web site. You can add the contents of the Web site to the Web Setup project. The setup project creates an MSI file that contains the output of the Web site. You can also create a bootstrap program, setup.exe, that contains Windows Installer files that ensure that the MSI can run on the target computer . Windows Installer Setup Packages
  • 10. Developing Web Applications Using ASP.NET Contents of an MSI Package: Packaged version of the Web files to be deployed. Definitions of the following setup elements: The user interface for the installer Registry settings to be deployed with the Web application (if required) Custom actions to run as part of the setup Launch conditions that control installation Windows Installer Setup Packages (Contd.)
  • 11. Developing Web Applications Using ASP.NET Deploying the MSI Package: After building the Windows Installer package, you can deploy the Web site by coping the installation files to the destination computer. If you include the bootstrap program in the Web Setup project, you can run setup.exe and step through the setup application to install the Web site. If you did not include the bootstrap program in the Web Setup project, you can run the MSI file to install the Web site. Windows Installer Setup Packages (Contd.)
  • 12. Developing Web Applications Using ASP.NET Problem Statement: You are a developer in the Adventure Works organization, a fictitious bicycle manufacturer. You have been asked to assist in the development of the Business-to-Consumer (B2C) Web application and a related Business-to-Employee (B2E) extranet portal. Decisions on the design of the application have already been made. You have been asked to carry out a number of specific tasks in order to implement various elements of this design. As part of the first phase of the B2C development, you have been asked to investigate the deployment options for the Adventure Works Web application. Demo: Deploying a Web Application
  • 13. Developing Web Applications Using ASP.NET Solution: You need to perform following tasks: 1. Deploy a Web Application by Using the Copy Web Site Utility a. Open the Adventure Works Web site. b. Create a connection to a new virtual directory as the destination for copying the Web site. c. Select files to copy to the destination Web site. d. Browse to the deployed Web site. e. Edit code for a deployed Web site file. f. Edit markup for a deployed Web site file. g. Browse to the modified deployed Web site. h. Synchronize the source files with the edited deployed Web site. Demo: Deploying a Web Application (Contd.)
  • 14. Developing Web Applications Using ASP.NET 2. Precompile and Deploy a Web Application by Using the Publish Web Site Utility a. Install the SQL Server provider database. b. Configure the ASP.NET SQL Server membership provider. c. Create the membership registration page. d. Create the membership update page. 3. Building a Windows Installer Package for Deploying a Web Application a. Open the Adventure Works Web site. b. Add and configure a Web Setup project to the solution. c. Design the user interface for the Windows Installer package. d. Build the Windows Installer package. e. Run the Windows Installer package. Demo: Deploying a Web Application (Contd.)
  • 15. Developing Web Applications Using ASP.NET Summary In this session, you learned that: Copy Web Site utility enables the deployment of a Web site by copying the source files for the Web application. Files at source and destination can be synchronized using Copy Web Site utility. The Publish Web Site utility enables the deployment of a compiled Web site without needing to copy the source files. In precompiling using Publish Web Site utility, application is built and the source code in the Web site is compiled into DLL assemblies. Windows Installer packages can be created to package and deploy a Web application.
  • 16. Developing Web Applications Using ASP.NET Summary (Contd.) The Setup project creates an MSI file that contains the output of the Web site. Bootstrap program can also be created using Setup project. After Windows Installer package has been built, Web site can be deployed by coping installation files to the destination computer.