SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Developing Web Applications Using ASP.NET
Objectives


                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




     Ver. 1.0                                                            Slide 1 of 16
Developing Web Applications Using ASP.NET
The Copy Web Site Utility


                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


     Ver. 1.0                                                          Slide 2 of 16
Developing Web Applications Using ASP.NET
The Copy Web Site Utility (Contd.)


                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.


     Ver. 1.0                                                               Slide 3 of 16
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:




     Ver. 1.0                                                     Slide 4 of 16
Developing Web Applications Using ASP.NET
The Copy Web Site Utility (Contd.)


                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



     Ver. 1.0                                                               Slide 5 of 16
Developing Web Applications Using ASP.NET
The Publish Web Site Utility


                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.


     Ver. 1.0                                                         Slide 6 of 16
Developing Web Applications Using ASP.NET
The Publish Web Site Utility (Contd.)


                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.
     Ver. 1.0                                                             Slide 7 of 16
Developing Web Applications Using ASP.NET
The Publish Web Site Utility (Contd.)


                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.



     Ver. 1.0                                                              Slide 8 of 16
Developing Web Applications Using ASP.NET
Windows Installer Setup Packages


                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 .



     Ver. 1.0                                                     Slide 9 of 16
Developing Web Applications Using ASP.NET
Windows Installer Setup Packages (Contd.)


                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




     Ver. 1.0                                                                   Slide 10 of 16
Developing Web Applications Using ASP.NET
Windows Installer Setup Packages (Contd.)


                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.




     Ver. 1.0                                                              Slide 11 of 16
Developing Web Applications Using ASP.NET
Demo: Deploying a Web Application


                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.




     Ver. 1.0                                                            Slide 12 of 16
Developing Web Applications Using ASP.NET
Demo: Deploying a Web Application (Contd.)


                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.




     Ver. 1.0                                                                            Slide 13 of 16
Developing Web Applications Using ASP.NET
Demo: Deploying a Web Application (Contd.)


                1. 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.
                2. 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.




     Ver. 1.0                                                                           Slide 14 of 16
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.




    Ver. 1.0                                                           Slide 15 of 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.




    Ver. 1.0                                                          Slide 16 of 16

Weitere ähnliche Inhalte

Was ist angesagt?

Dr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentDr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentUlrich Krause
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centrejatin batra
 
Naoki Hada iOS/Web/Mobile/Flash/RIA portfolio
Naoki Hada iOS/Web/Mobile/Flash/RIA portfolioNaoki Hada iOS/Web/Mobile/Flash/RIA portfolio
Naoki Hada iOS/Web/Mobile/Flash/RIA portfoliohadanaoki
 
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...MIDAS
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMANAND PRAKASH
 
Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016David Brattoli
 
WCM-8 A Tale of Two Web Quick Start Implementations
WCM-8 A Tale of Two Web Quick Start ImplementationsWCM-8 A Tale of Two Web Quick Start Implementations
WCM-8 A Tale of Two Web Quick Start ImplementationsAlfresco Software
 
Servlets made easy. 
Write once and run everywhere.
Servlets made easy. 
Write once and run everywhere.Servlets made easy. 
Write once and run everywhere.
Servlets made easy. 
Write once and run everywhere.ICON UK EVENTS Limited
 
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages Heaven
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages HeavenIBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages Heaven
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages HeavenPaul Withers
 
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadmin
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadminHow to install and configure microsoft iis 7.5, php, my sql, and phpmyadmin
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadminSandy Ra
 
Cross platform web app development
Cross platform web app developmentCross platform web app development
Cross platform web app developmenttomasperezv
 
Haiku os
Haiku osHaiku os
Haiku osnobela
 
Web browsers
Web browsersWeb browsers
Web browserslearnt
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...Daniel Meixner
 

Was ist angesagt? (18)

Dr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin developmentDr. Strangelove, or how I learned to love plugin development
Dr. Strangelove, or how I learned to love plugin development
 
Web Browser ! Batra Computer Centre
Web Browser ! Batra Computer CentreWeb Browser ! Batra Computer Centre
Web Browser ! Batra Computer Centre
 
Naoki Hada iOS/Web/Mobile/Flash/RIA portfolio
Naoki Hada iOS/Web/Mobile/Flash/RIA portfolioNaoki Hada iOS/Web/Mobile/Flash/RIA portfolio
Naoki Hada iOS/Web/Mobile/Flash/RIA portfolio
 
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...
Browser Performance Tests - Internet Explorer 11 vs Firefox 25 vs Google Chro...
 
Firefox os
Firefox osFirefox os
Firefox os
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
 
Browsers
BrowsersBrowsers
Browsers
 
Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016
 
WCM-8 A Tale of Two Web Quick Start Implementations
WCM-8 A Tale of Two Web Quick Start ImplementationsWCM-8 A Tale of Two Web Quick Start Implementations
WCM-8 A Tale of Two Web Quick Start Implementations
 
Servlets made easy. 
Write once and run everywhere.
Servlets made easy. 
Write once and run everywhere.Servlets made easy. 
Write once and run everywhere.
Servlets made easy. 
Write once and run everywhere.
 
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages Heaven
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages HeavenIBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages Heaven
IBM Connect 2014 BP204: It's Not Infernal: Dante's Nine Circles of XPages Heaven
 
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadmin
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadminHow to install and configure microsoft iis 7.5, php, my sql, and phpmyadmin
How to install and configure microsoft iis 7.5, php, my sql, and phpmyadmin
 
Haiku operating system
Haiku operating systemHaiku operating system
Haiku operating system
 
Cross platform web app development
Cross platform web app developmentCross platform web app development
Cross platform web app development
 
Web Browsers
Web BrowsersWeb Browsers
Web Browsers
 
Haiku os
Haiku osHaiku os
Haiku os
 
Web browsers
Web browsersWeb browsers
Web browsers
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
DotNet Cologne 2015 - Windows 10 AppDev, Teil1: App Developer Basics- (Daniel...
 

Andere mochten auch

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
 
Ado.net session10
Ado.net session10Ado.net session10
Ado.net session10Niit Care
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05Niit Care
 
Comp tia n+_session_06
Comp tia n+_session_06Comp tia n+_session_06
Comp tia n+_session_06Niit Care
 

Andere mochten auch (6)

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
 
Ado.net session10
Ado.net session10Ado.net session10
Ado.net session10
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
 
Comp tia n+_session_06
Comp tia n+_session_06Comp tia n+_session_06
Comp tia n+_session_06
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 

Ähnlich wie 09 asp.net session13

01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Vivek chan
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Mani Chaubey
 
Enterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility AnalysisEnterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility AnalysisLawrence Nyakiso
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Niit Care
 
Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Kirk Yamamoto
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23Niit Care
 
Cross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual StudioCross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual StudioMizanur Sarker
 
Asp net mvc
Asp net mvcAsp net mvc
Asp net mvcbgrynko
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!rommel_gagasa
 
Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8emmanuel_gagasa
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1Kumar S
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questionspraveen_guda
 

Ähnlich wie 09 asp.net session13 (20)

01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
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 tech
Web techWeb tech
Web tech
 
Web techh
Web techhWeb techh
Web techh
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 
Enterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility AnalysisEnterprise Hybrid Feasibility Analysis
Enterprise Hybrid Feasibility Analysis
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Chapter 26
Chapter 26Chapter 26
Chapter 26
 
Php On Windows
Php On WindowsPhp On Windows
Php On Windows
 
Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
Cross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual StudioCross-Platform Development using Angulr JS in Visual Studio
Cross-Platform Development using Angulr JS in Visual Studio
 
Asp net mvc
Asp net mvcAsp net mvc
Asp net mvc
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questions
 

Mehr von Niit Care (20)

Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
 

Kürzlich hochgeladen

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Kürzlich hochgeladen (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

09 asp.net session13

  • 1. Developing Web Applications Using ASP.NET Objectives 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 Ver. 1.0 Slide 1 of 16
  • 2. Developing Web Applications Using ASP.NET The Copy Web Site Utility 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 Ver. 1.0 Slide 2 of 16
  • 3. Developing Web Applications Using ASP.NET The Copy Web Site Utility (Contd.) 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. Ver. 1.0 Slide 3 of 16
  • 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: Ver. 1.0 Slide 4 of 16
  • 5. Developing Web Applications Using ASP.NET The Copy Web Site Utility (Contd.) 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 Ver. 1.0 Slide 5 of 16
  • 6. Developing Web Applications Using ASP.NET The Publish Web Site Utility 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. Ver. 1.0 Slide 6 of 16
  • 7. Developing Web Applications Using ASP.NET The Publish Web Site Utility (Contd.) 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. Ver. 1.0 Slide 7 of 16
  • 8. Developing Web Applications Using ASP.NET The Publish Web Site Utility (Contd.) 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. Ver. 1.0 Slide 8 of 16
  • 9. Developing Web Applications Using ASP.NET Windows Installer Setup Packages 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 . Ver. 1.0 Slide 9 of 16
  • 10. Developing Web Applications Using ASP.NET Windows Installer Setup Packages (Contd.) 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 Ver. 1.0 Slide 10 of 16
  • 11. Developing Web Applications Using ASP.NET Windows Installer Setup Packages (Contd.) 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. Ver. 1.0 Slide 11 of 16
  • 12. Developing Web Applications Using ASP.NET Demo: Deploying a Web Application 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. Ver. 1.0 Slide 12 of 16
  • 13. Developing Web Applications Using ASP.NET Demo: Deploying a Web Application (Contd.) 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. Ver. 1.0 Slide 13 of 16
  • 14. Developing Web Applications Using ASP.NET Demo: Deploying a Web Application (Contd.) 1. 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. 2. 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. Ver. 1.0 Slide 14 of 16
  • 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. Ver. 1.0 Slide 15 of 16
  • 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. Ver. 1.0 Slide 16 of 16