Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 20

Module 14

ASP.NET Deployments
Module Overview
- Overview of Web Application Deployments
- Overview of Web Site Deployments
- Deploying AdventureWorks
esson 1: Overview of Web Application
Deployments
- Web Deployment Packages
- One-Click Publish
- Enterprise Scenarios
- Third-Party Hosting Scenarios
- Deploying a SQ Server Database
- Extending the Web Publishing Platform
- Extending the Web Publishing Platform: Development
Computer
- Extending the Web Publishing Platform: Web Server
Web Deployment Packages
- IIS Settings
Application Pool
Authentication method
Error Handling
- Deploy Database Scripts
- Production Settings
Release / Debugging
Connection Strings
- Capable of Custom Extensions
Security Certificates
Windows Registry Settings
Assemblies in Global Assembly Cache (GAC)
One-Click Publish
- Deploy Remotely Directly from Visual Studio Toolbar
- Create Publish Profiles to Specify Settings
Different Servers Same Settings
Same Server Different Settings
Different Servers Different Settings
- Compatible with Third Party Hosting
Requires Additional Information from Hosting Company
Enterprise Scenarios
Typical Enterprise Scenarios
Developer
Computer
Developer
Computer
Developer
Computer
Test
Server
Test
Server
Test
Server
Test
Server
Staging
Server
Production
Server
Production
Server
Production
Server
Source
Control
Source
Control
Publish
Package
Package
Package
Package
Must have remote access to target server Must have remote access to target server
Third-party Hosting Scenarios
Typical Enterprise Scenarios
Developer
Computer
Publish
Publish
Developer
Computer
Dedicated
Server
Shared Hosting
Environment
Deploying a SQ Server Database
Package /
Publish
Package /
Publish
Transform Transform Collect Collect Build Build Web Deploy Web Deploy
Extending the Web Publishing Pipeline
Build Build
Collect
binary and
.pdb files
Collect
binary and
.pdb files
Transform
web.config
Transform
web.config
Collect GAC,
COM, Registry
settings
Create
package or
publish
Create
package or
publish
Collect
references
Collect
references
Exclude files
Collect IIS
settings
Collect IIS
settings
Collect
content
Collect
content
Precompile
Collect SS
Certificates
Create SQ
scripts
Create SQ
scripts
Create
manifeest
Create
manifeest
Custom extensions
Extending the Web Publishing Platform: The
Development Computer
IIS Provider IIS Provider
Database
Provider
Database
Provider
Web
Content
Provider
Web
Content
Provider
Other
Providers
Other
Providers
Your custom
Provider
Your custom
Provider
IIS IIS
Database Database
Web
content
Web
content
COM
GAC
COM
GAC
Custom
Asset
Custom
Asset
Other
Providers
Other
Providers
Other
Providers
Other
Providers
SourceManifest.xml SourceManifest.xml
Package.zip Package.zip
Web Deploy Web Deploy
Extending the Web Publishing Platform: The Web
Server
IIS Provider IIS Provider
Database
Provider
Database
Provider
Web
Content
Provider
Web
Content
Provider
Other
Providers
Other
Providers
Your custom
Provider
Your custom
Provider
IIS IIS
Database Database
Web
content
Web
content
COM
GAC
COM
GAC
Custom
Asset
Custom
Asset
Other
Providers
Other
Providers
Other
Providers
Other
Providers
Parameters.xml Parameters.xml
Package.zip Package.zip
Web Deploy Web Deploy
esson 2: Overview of Website Deployments
- The Copy Web Site Tool
- The Publish Web Site Utility
- Web.config File Deployment
The Copy Web Site Tool
- Similar to FTP Utility
- Support Synchronization
- Especially useful when you cannot open files from the
remote site to edit them
- Provides Status of Files
Unchanged
Changed
New
Deleted
The Publish Web Site Utility
- Precompiles pages, the source code in the App_Code
folder, and other source files into executable output.
Strips the source code out of files
eaves Stub Files and Compiled Assemblies
- Writes the executable output to a target folder.
Web.config File Deployment
- Edit the Web.config file on the target server each time the
project is deployed.
- Maintain separate versions of the Web.config file for each
environment (perhaps in separate folders or with
distinctive names), and copy only the version that is
appropriate to the target server.
- Create XST files to transform the Web.config and
manually apply the transforms manually when deploying.
<?xm1 ves1on="1.0"?>
<conf1guaf1on xm1ns:xdf="hffp://schemas.m1cosoff.com/XML-
0ocumenf-Tansfom">
<connecf1onSf1ngs>
<add name="App11caf1onSev1ces"
connecf1onSf1ng="|Poducf1on0afabase]"
xdf:Tansfom="Pep1ace" xdf:Locafo="Mafch|name}"/>
</connecf1onSf1ngs>
</conf1guaf1on>
<?xm1 ves1on="1.0"?>
<conf1guaf1on xm1ns:xdf="hffp://schemas.m1cosoff.com/XML-
0ocumenf-Tansfom">
<connecf1onSf1ngs>
<add name="App11caf1onSev1ces"
connecf1onSf1ng="|Poducf1on0afabase]"
xdf:Tansfom="Pep1ace" xdf:Locafo="Mafch|name}"/>
</connecf1onSf1ngs>
</conf1guaf1on>
Typical transform file
ab: Deploying AdventureWorks
- Exercise 1: Creating a profile for deploying a Web Application
Project using One-Click Publish
- Exercise 2: Deploying a Web Application Using a Web
Deployment Package
ogon information
Virtual machine 10264-GEN-DEV
User name Student
Password
Pa$$w0rd
Estimated time: 60 minutes
ab Scenario
ab Review
- Which page in the Project Designer did you use to specify
which files to deploy?
- How did you create the destination database for your
deployment project?
- In which file did you specify the scripts not to run in a
transaction?
Module Review and Takeaways
- Review Questions
- Common Issues and Troubleshooting Tips
- Real-world Issues and Scenarios
- Best Practices
- Tools
otes Page Over-flow Slide. Do ot Print
Slide. See otes pane.

You might also like