Your SlideShare is downloading. ×
0
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Web Deployment With Visual Studio 2010
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Web Deployment With Visual Studio 2010

1,592

Published on

Web Deployment With Visual Studio 2010

Web Deployment With Visual Studio 2010

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,592
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
54
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 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.
  • 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.
  • Transcript

    • 1. Agenda <ul><li>Transforming settings in web.config </li></ul><ul><li>Packaging applications for deployment </li></ul><ul><li>Deploying packages to IIS </li></ul><ul><li>Name Ravi Pahuja </li></ul><ul><li>Organization Espire Info Labs </li></ul><ul><li>Email ravipahuja@hotmail.com </li></ul>
    • 2. ASP.NET and IIS Configuration <ul><li>Configuration stored in XML files validated by a schema. </li></ul>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 <ul><li>Multiple environments including Development, Testing, Staging and Production </li></ul><ul><li>Must manage settings for each environment </li></ul><ul><li>Difficult to keep environments consistent </li></ul><ul><li>Applications often need to be deployed by someone else </li></ul><ul><li>Need to package code, data, application settings and environment configuration for easier deployment </li></ul>
    • 4. <ul><li>What are the components, settings, etc you have to deploy with your web application? </li></ul>
    • 5. Managing Settings <ul><li>Need consistent configuration with customizations across deployment environments </li></ul><ul><li>Having multiple web.config files introduces inconsistencies </li></ul><ul><li>Web.config transformations allows one master web.config with specific customizations for target environments </li></ul>
    • 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 <ul><li>Synchronize, Migrate, Deploy </li></ul><ul><ul><li>Works with IIS 6.0 and IIS 7.0 </li></ul></ul><ul><ul><li>Analyze the destination environment </li></ul></ul><ul><ul><li>Do a –whatif Analysis before committing operation </li></ul></ul><ul><li>Includes a service for deploying applications remotely </li></ul><ul><li>Integration </li></ul><ul><ul><li>Integrated with Powershell </li></ul></ul><ul><ul><li>Integrated in Visual Studio 2010 </li></ul></ul><ul><ul><li>Compatible with Web Platform Installer </li></ul></ul>
    • 10. Integration with Visual Studio 2010
    • 11.  

    ×