Web Deployment With Visual Studio 2010

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    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.

    Favorites, Groups & Events

    Web Deployment With Visual Studio 2010 - Presentation Transcript

    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
      • What are the components, settings, etc you have to deploy with your web application?
    4. 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
    5. 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 >
    6. 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
    7. 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;
    8. 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
    9. Integration with Visual Studio 2010
    10.  

    + Rishu MehraRishu Mehra, 1 month ago

    custom

    112 views, 0 favs, 0 embeds more stats

    Web Deployment With Visual Studio 2010

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 112
      • 112 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 2
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories