SlideShare a Scribd company logo
Agenda Transforming settings in web.config Packaging applications for deployment Deploying packages to IIS Name Ravi Pahuja Organization Espire Info Labs Email ravipahuja@hotmail.com
ASP.NET and IIS Configuration Configuration stored in XML files validated by a schema. Schema describes configuration settings for IIS, ASP.NET and 3 rd  party applications. Central configuration file for the server contains system wide configuration settings. Distributed configuration files contain overrides and local site and application settings. Validation
Web Deployment Today Multiple environments including Development, Testing, Staging and Production Must manage settings for each environment Difficult to keep environments consistent Applications often need to be deployed by someone else Need to package code, data, application settings and environment configuration for easier deployment
What are the components, settings, etc you have to deploy with your web application?
Managing Settings Need consistent configuration with customizations across deployment environments Having multiple web.config files introduces inconsistencies Web.config transformations allows one master web.config with specific customizations for target environments
How it Transformation Works Web. config Web. Staging. config Visual Studio Transformation Deployed Web. config < appSettings > < add   key =&quot;EnvironmentName&quot;  value =&quot;Staging&quot;  xdt:Transform =&quot;SetAttributes(value)&quot;  xdt:Locator =&quot;Match(key)&quot; /> </ appSettings > < connectionStrings > < add   name =&quot;LoggingConnectionString&quot;  connectionString =“ connection &quot;  providerName =&quot;System.Data.SqlClient&quot;  xdt:Transform =&quot;Replace&quot;  xdt:Locator =&quot;Match(name)&quot; /> </ connectionStrings >
Web.Config Transformation Transform Description xdt:Transform=“Replace” Replaces the first matched node xdt:Transform=“Remove” Removes the first matched node xdt:Transform=“RemoveAll” Removes all the matching nodes xdt:Transform=“Insert” Inserts the node at the end xdt:Transform=“SetAttributes(attributeNames)” Creates or changes values of the existing attributes xdt:Transform=“RemoveAttributes(attributeNames)” Removes the attributes if they exist xdt:Transform=“InsertBefore(XPath)” Inserts the node on the provided Xpath xdt:Transform=“InsertAfter(XPath)” Inserts the node on the provided XPath
Web.Config Transformation Locators Locator Description xdt:Locator=“Match(attributeName)” Can accept comma seperated names of the attributes xdt:Locator=“Condition(xPath Predicate)” Can take any Xpath predicates like xdt:Locator=&quot;Condition(@name=’Northwind’ or @providerName=’ System.Data.SqlClient’)&quot;  xdt:Locator=“Xpath(/configuration/…)” Can take any complicated Xpath like &quot;XPath(//system.web)&quot;
MS Deploy Synchronize, Migrate, Deploy Works with IIS 6.0 and IIS 7.0 Analyze the destination environment Do a –whatif Analysis before committing operation Includes a service for deploying applications remotely Integration Integrated with Powershell Integrated in Visual Studio 2010 Compatible with Web Platform Installer
Integration with Visual Studio 2010
 

More Related Content

PDF
Performance Tuning of .NET Application
PPT
Road Show Asp Net
PPTX
REST API for your WP7 App
PDF
Felix HTTP - Paving the road to the future
PDF
using Mithril.js + postgREST to build and consume API's
PDF
Whats New in the Http Service Specification - Felix Meschberger
PPTX
PostgREST Design Philosophy
PPTX
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...
Performance Tuning of .NET Application
Road Show Asp Net
REST API for your WP7 App
Felix HTTP - Paving the road to the future
using Mithril.js + postgREST to build and consume API's
Whats New in the Http Service Specification - Felix Meschberger
PostgREST Design Philosophy
SenchaCon 2016: Enterprise Applications, Role Based Access Controls (RBAC) an...

What's hot (20)

PPTX
Meteor + Ionic Introduction
PPTX
Harish Aspnet Deployment
KEY
CakePHP REST Plugin
PPTX
Walther Ajax4
PPTX
Display eea’s semantic content with elasticsearch and node.js applications sh...
ODP
An Overview of Node.js
PPTX
Walther Aspnet4
PDF
Apache spark with akka couchbase code by bhawani
PPT
PDF
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
PPTX
A Tour of PostgREST
PPTX
Harish Understanding Aspnet
PDF
Nuxt.js - Introduction
KEY
Geotalk presentation
PDF
Advanced Asp.Net Concepts And Constructs
PPTX
PDF
Tips and Tricks For Faster Asp.NET and MVC Applications
PPT
Backbone js
ODP
Spray - Build RESTfull services in scala
PPT
Grails Plugins
Meteor + Ionic Introduction
Harish Aspnet Deployment
CakePHP REST Plugin
Walther Ajax4
Display eea’s semantic content with elasticsearch and node.js applications sh...
An Overview of Node.js
Walther Aspnet4
Apache spark with akka couchbase code by bhawani
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
A Tour of PostgREST
Harish Understanding Aspnet
Nuxt.js - Introduction
Geotalk presentation
Advanced Asp.Net Concepts And Constructs
Tips and Tricks For Faster Asp.NET and MVC Applications
Backbone js
Spray - Build RESTfull services in scala
Grails Plugins
Ad

Similar to Web Deployment With Visual Studio 2010 (20)

PPT
Vs2010and Ne Tframework
PPTX
10 wp7 local database
PPT
Wcf data services
PDF
MuleSoft London Community February 2020 - MuleSoft and OData
PPT
Migration from ASP to ASP.NET
PPTX
Asp Net Advance Topics
PPTX
Practical OData
PDF
SQLite in Adobe AIR
ODP
A Complete Tour of JSF 2
PPTX
Web Technologies - forms and actions
DOCX
ASP.NET Web Site Deployment Instruction
PDF
Murach : How to work with session state and cookies
PDF
Toms introtospring mvc
PDF
Best practices in using Salesforce Metadata API
PDF
Rest web service_with_spring_hateoas
PPTX
CiklumJavaSat_15112011:Alex Kruk VMForce
PPT
Introducing Struts 2
PDF
Schema-based multi-tenant architecture using Quarkus &amp; Hibernate-ORM.pdf
PPT
Windows Azure and a little SQL Data Services
Vs2010and Ne Tframework
10 wp7 local database
Wcf data services
MuleSoft London Community February 2020 - MuleSoft and OData
Migration from ASP to ASP.NET
Asp Net Advance Topics
Practical OData
SQLite in Adobe AIR
A Complete Tour of JSF 2
Web Technologies - forms and actions
ASP.NET Web Site Deployment Instruction
Murach : How to work with session state and cookies
Toms introtospring mvc
Best practices in using Salesforce Metadata API
Rest web service_with_spring_hateoas
CiklumJavaSat_15112011:Alex Kruk VMForce
Introducing Struts 2
Schema-based multi-tenant architecture using Quarkus &amp; Hibernate-ORM.pdf
Windows Azure and a little SQL Data Services
Ad

More from Rishu Mehra (20)

PPTX
I Unlock Joy! - ITM Gurgaon
PPTX
What is Microsoft Student Partner Program?
PPTX
all you need to know about windows phone
PPTX
Blurring the difference of Web & Native Apps with HTML 5 & IE 9
PDF
Lync Server
PDF
Office365
PPTX
Windows Phone 7: Interfacing
PPTX
Hello, windows phone!
PPTX
Windows Phone 7 Applications with Silverlight
PPTX
Windows Phone 7: Silverlight
PPTX
SharePoint 2010 for IT Pros
PPTX
SharePoint 2010 for Devs
PPTX
Ado.net entity framework_4.0
PPTX
SQL Server 2008 R2 - Implementing High Availabilitty
PPTX
Microsoft India Academic Initiatives
PPTX
Microsoft Community Tools
PPTX
Visual studio 2010
PPTX
Mvc 4 0_jayant_jindal_28082010
PPTX
Microsoft CTD & User Groups
PPTX
.Net Performance by Bijoy Singhal
I Unlock Joy! - ITM Gurgaon
What is Microsoft Student Partner Program?
all you need to know about windows phone
Blurring the difference of Web & Native Apps with HTML 5 & IE 9
Lync Server
Office365
Windows Phone 7: Interfacing
Hello, windows phone!
Windows Phone 7 Applications with Silverlight
Windows Phone 7: Silverlight
SharePoint 2010 for IT Pros
SharePoint 2010 for Devs
Ado.net entity framework_4.0
SQL Server 2008 R2 - Implementing High Availabilitty
Microsoft India Academic Initiatives
Microsoft Community Tools
Visual studio 2010
Mvc 4 0_jayant_jindal_28082010
Microsoft CTD & User Groups
.Net Performance by Bijoy Singhal

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Electronic commerce courselecture one. Pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Electronic commerce courselecture one. Pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Digital-Transformation-Roadmap-for-Companies.pptx
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Empathic Computing: Creating Shared Understanding
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...

Web Deployment With Visual Studio 2010

  • 1. Agenda Transforming settings in web.config Packaging applications for deployment Deploying packages to IIS Name Ravi Pahuja Organization Espire Info Labs Email ravipahuja@hotmail.com
  • 2. ASP.NET and IIS Configuration Configuration stored in XML files validated by a schema. Schema describes configuration settings for IIS, ASP.NET and 3 rd party applications. Central configuration file for the server contains system wide configuration settings. Distributed configuration files contain overrides and local site and application settings. Validation
  • 3. Web Deployment Today Multiple environments including Development, Testing, Staging and Production Must manage settings for each environment Difficult to keep environments consistent Applications often need to be deployed by someone else Need to package code, data, application settings and environment configuration for easier deployment
  • 4. What are the components, settings, etc you have to deploy with your web application?
  • 5. Managing Settings Need consistent configuration with customizations across deployment environments Having multiple web.config files introduces inconsistencies Web.config transformations allows one master web.config with specific customizations for target environments
  • 6. How it Transformation Works Web. config Web. Staging. config Visual Studio Transformation Deployed Web. config < appSettings > < add key =&quot;EnvironmentName&quot; value =&quot;Staging&quot; xdt:Transform =&quot;SetAttributes(value)&quot; xdt:Locator =&quot;Match(key)&quot; /> </ appSettings > < connectionStrings > < add name =&quot;LoggingConnectionString&quot; connectionString =“ connection &quot; providerName =&quot;System.Data.SqlClient&quot; xdt:Transform =&quot;Replace&quot; xdt:Locator =&quot;Match(name)&quot; /> </ connectionStrings >
  • 7. Web.Config Transformation Transform Description xdt:Transform=“Replace” Replaces the first matched node xdt:Transform=“Remove” Removes the first matched node xdt:Transform=“RemoveAll” Removes all the matching nodes xdt:Transform=“Insert” Inserts the node at the end xdt:Transform=“SetAttributes(attributeNames)” Creates or changes values of the existing attributes xdt:Transform=“RemoveAttributes(attributeNames)” Removes the attributes if they exist xdt:Transform=“InsertBefore(XPath)” Inserts the node on the provided Xpath xdt:Transform=“InsertAfter(XPath)” Inserts the node on the provided XPath
  • 8. Web.Config Transformation Locators Locator Description xdt:Locator=“Match(attributeName)” Can accept comma seperated names of the attributes xdt:Locator=“Condition(xPath Predicate)” Can take any Xpath predicates like xdt:Locator=&quot;Condition(@name=’Northwind’ or @providerName=’ System.Data.SqlClient’)&quot; xdt:Locator=“Xpath(/configuration/…)” Can take any complicated Xpath like &quot;XPath(//system.web)&quot;
  • 9. MS Deploy Synchronize, Migrate, Deploy Works with IIS 6.0 and IIS 7.0 Analyze the destination environment Do a –whatif Analysis before committing operation Includes a service for deploying applications remotely Integration Integrated with Powershell Integrated in Visual Studio 2010 Compatible with Web Platform Installer
  • 10. Integration with Visual Studio 2010
  • 11.  

Editor's Notes

  • #8: 10/29/09 16:53 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
  • #9: 10/29/09 16:53 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.