SlideShare a Scribd company logo
1 of 29
   After you’ve developed and tested your
    application, it’s time to deploy it to a production
    environment.

   The deployment process can be automated with
    tools and scripts, managed and governed by IT
    departments, or deployed directly by developers
    through Microsoft Visual Studio.

   Additionally, many Web developers must release
    their applications commercially; this means other
    people need to be able to deploy them in
    environments that the developer knows nothing
    about.
   There are times, when you might need more control
    over how your application gets deployed.

   Check dependencies (such as particular operating
    system versions or service packs),
   add registry entries for your application,
   download and install prerequisites,
   set security,
   add dependent dynamic-link libraries (DLLs),
   and so on.
   For all these purposes you will find a number of
    setup Editors of following types in the View menu
    of Visual Studio :

   Launch Conditions
   Registry
   User Interface
   Custom Actions
   File System
   File Types
   A launch condition is used to check the
    requirements for your application installation.

   For example, you can check for specific versions of
    Windows or verify that specific service packs are
    present before you allow an install.

   Launch conditions can provide a useful message to
    the user if a requirement is missing.
Following are the common launch conditions :
 File Launch Condition : if you want to verify that a
   specific DLL is present
 Registry Launch Condition : search a target
   computer for a specific registry key or value
 Windows Installer Launch Condition : to determine
   if a specific package is installed
 .NET Framework Launch Condition : checks the
   runtime version of the .NET Framework on the
   target computer
 Internet Information Services Launch Condition :
   This searches for the presence of the right version of
   Microsoft Internet Information Services (IIS
   To create and manage new launch conditions, you use the
    Launch Conditions editor in the View menu.

   There are two main branches of the Launch Conditions
    editor:
    • Search Target Machine

    • Launch Conditions


   Typically, you must add an item to each of these two
    nodes.

   For example, if you want to verify that a specific DLL is
    present, you must Add File Search under Search Target
    Machine and store the result of the search in a property.
    You then Add Launch Condition under Launch
    Conditions that uses the search condition’s property.
   To add a basic search condition, start by right-clicking the Search
    Target Machine node in the Launch Conditions editor. You will have
    three search condition types to choose from:

   File Search This search type allows you to define a search for a file.
    You set the FileName to the name of the file you are searching for, the
    Folder to search, and the Property to a variable name you use for
    tracking the results of the search.

   Registry Search This search type allows you to specify a registry
    search. You set the Root property to a place to start looking in the
    registry, the RegKey to a registry key to search for, and the Value
    property to a value you hope to be set for the given key. You store the
    results of your search in the Property property as a variable name that
    can be used in a related launch condition.

   Windows Installer Search This search type allows you to search for a
    registered component. You set the ComponentId to a GUID of the
    component for which you are searching. You set the Property
    property to a variable that indicates the results of your search.
   Right-click the Launch Conditions folder, and then select
    Add Launch Condition.
   With the new launch condition selected, view the
    Properties window to configure your launch condition.
   You can set the Condition property to match the Property
    value of a search condition or specify a different
    condition.
   To download software to resolve the missing launch
    condition, provide a URL in the InstallUrl property.
   In the Message property, type a message to be displayed
    to the person installing your Web application if a
    condition is not met.
   To create a grouped launch condition, you right-click the
    root node, Requirements On Target Machine.

   Doing so simply creates both a search and a launch
    condition. However, these items are preconfigured to
    work together. You simply need to tweak their
    properties according to your needs.
   Although rare, there might still be times when you need to add
    registry entries during setup.

   From the View menu, select Registry Editor.

   To add a registry setting in a nested key, you need to add each
    nested key to the editor.
    For example, to add a setting to
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftASP.NET, you
    need to add the SOFTWARE, Microsoft, and ASP.NET keys to
    the HKEY_LOCAL_MACHINE hive in the Registry Settings
    editor.

   Right-click the key to which you want to add a setting, select
    New, and then select String Value, Environment String
    Value, Binary Value, or DWORD Value. Type the name of the
    value, and then press Enter.
   Administrators responsible for deploying and
    managing your Web applications can also add
    custom setup wizard pages.

   These pages enable you to perform the following
    types of tasks:

   Display a license agreement A Web Setup Project
    provides a dialog box template for requiring the
    user to accept a license agreement.

   Modify settings in the Web.config file You can use
    user input to modify configuration settings without
    requiring administrators to know how to configure
    an Extensible Markup Language (XML) file.
   Perform custom configuration You can use a
    custom configuration to prompt the user for
    information that might be stored in the registry or
    in another unusual location.

   Activate or register your application You can
    prompt the user for a product key or registration
    information. Prompts can be either required or
    optional.

   To add a custom setup wizard page to your Web
    deployment project, you use the View | User
    Interface Editor
   You add a custom action to your setup project through
    the View | Custom Actions Editor

   The Custom Actions editor displays the four setup
    phases. You can right-click the phase to which you
    want to add a custom action.

   You then select Add Custom Action. Doing so launches
    the Select Item In Project dialog box.

   From here you can select to add a custom .exe or script
    file from current project or elsewhere to execute at the
    appropriate phase of deployment.
   Custom actions can run in any of the four phases of
    setup:
   Install This phase performs the bulk of the work done
    during setup
   Commit This phase finalizes these changes. After the
    Commit phase, setup cannot be rolled back and the
    application should be uninstalled with Add or Remove
    Programs.

   RollBack The Rollback phase runs only if setup fails or
    is cancelled. It occurs instead of the Commit phase and
    removes any new files or settings.
   Uninstall This phase removes files and settings from
    the computer when the application is removed with
    Add or Remove Programs.
   There are typically two generated to the target build
    directory for Web Setup Projects:

   Setup.exe
   <Websetupprojectname>.msi

   Although users are more familiar with using Setup.exe to
    install an application, the .msi file is smaller, far more
    versatile, and familiar to most systems administrators.

   The only disadvantage to deploying the application with
    the .msi file is that the target Web server must have
    Windows Installer. Most Web servers already have this
    component, however.
   There are many scenarios in which you simply need to
    copy changes between two servers.

   There might be some changes from your development
    environment up to staging or even from staging to
    production in some limited scenarios.

   In these cases, you can use the Copy Web tool to publish
    changes between source and remote sites.

   You can also use the tool to synchronize files.
   This involves copying only changed files and detecting
    possible versioning conflicts in which the same file on
    both the source and remote site have been separately
    edited.
   To launch the Copy Web tool you typically open the Web
    site you intend as the source. Then right-click the site in
    Solution Explorer and choose Copy Web Site.

   The Copy Web tool displays two panes: Source Web Site
    and Remote Web Site.

   To set up a remote Web site, you must create a connection
    by clicking Connect at the top of the tool.

   This launches the Open Web Site dialog box, which allows
    you to find a Web site.
   You can copy or synchronize files between the source and
    the remote Web site in several different ways:
   Copy individual files in either direction
   Copy the entire site Right-click the Source Web Site pane,
    and then select Copy Site To Remote. To copy the Remote
    Web Site to the source Web site, right-click the Remote
    Web Site pane, and then select Copy Site To Source.
   Synchronize individual files Select files in either the
    source or remote Web site, and then click Synchronize
    Selected Files.
   Synchronize the entire site Right-click the Source Web
    Site pane, and then select Synchronize Site.
    To precompile and publish a Web application, follow
     these steps:

1.   Open the Web site you wish to precompile and publish.

2.   Next, you can right-click your Web application in
     Solution Explorer and select Publish Web Site.
     Alternatively, you can select the Build menu and then
     choose Publish Web Site.

3.   In the Publish Web Site dialog box, specify a location to
     which to publish.
   ASP.NET caching stores frequently accessed data or
    whole Web pages in memory where they can be retrieved
    faster than they could be from a file or database.

   Data that changes infrequently and is accessed by a lot of
    users is a good candidate for caching.

   The first access of this data would load it into the cache;
    subsequent requests would be served from the cache until
    the cache expires.
   There are two different types of caching in ASP.
    NET:

   Application caching : This represents a
    collection that can store any object in memory
    and automatically remove the object based on
    memory limitations, time limits, or other
    dependencies.

   Page output caching : This is ASP.NET’s ability
    to store a rendered page, portion of a page, or
    version of a page in memory to reduce the time
    required to render the page in future requests.
   Application caching (also called application data
    caching) is the process of storing data (and not pages)
    in a cache object. The cache object is available as a
    property of the Page object.

   It represents a collection class of type
    System.Web.Caching.Cache.

   The Page.Cache property actually uses an application-
    wide cache (and not just a page-specific cache).

   This means that a single Cache object exists for your
    entire application; items in the Cache can be shared
    between user sessions and requests
   You work with the Cache object like you would Session or
    similar objects. You can assign items directly to the cache
    by giving them a name (key) and assigning them an object
    (value).

    Cache["Greeting"] = "Hello, world!";
    if (Cache["Greeting"] != null)
    value = (string)Cache["Greeting"];
    else
    value = "Hello, world!";


   You wouldn’t normally cache a static string in your
    application; you’d more likely cache a file, a database
    query result, or other data that is shared and expensive to
    obtain.
   The Cache object has both the Add and Insert methods.

   Both define the same set of parameters and do the
    same thing behind the scenes.

   The Add method returns the item added to the cache.
    The Add method is meant to comply with the
    collection interface.

   The Insert method, however, has been the preferred
    method for adding items to the cache. It has a number
    of overloads based on the many parameters you can
    set when adding an item to the cache.
   A cache dependency links a cached item to
    something else such as a file or another item in
    the cache.

   ASP.NET monitors the dependency and
    invalidates the cache if the dependent item
    changes.

   Cache.Insert("FileCache", "CacheContents", new
    System.Web.Caching.CacheDependency(
    Server.MapPath("SourceFile.xml")));
   Many times you want to cache data for a specific
    amount of time.

   This allows you to limit the amount of time
    between cache refresh.

   To do so, you pass the absoluteExpiration parameter
    to the Cache.Insert method.

   Cache.Insert("FileCache", "CacheContents", null, DateTime.Now.Add
    Minutes(10), Cache.NoSlidingExpiration);
   Sliding expiration indicates the amount of time
    that must elapse between subsequent requests
    before an item is removed from the cache.

   This allows most frequently used cached objects
    to stay in your cache longer

   You set a sliding expiration by passing a
    TimeSpan to the slidingExpiration parameter of the
    Insert method.
   After a Web browser retrieves a page, the browser
    often keeps a copy of the page on the local computer.

   The next time the user requests the page, the browser
    simply verifies that the cached version is still valid,
    and then displays the cached page to the user.

   This improves the responsiveness of the site by
    decreasing the time required to load the page. It also
    reduces the load on the server because the server is
    not required to render a page.

More Related Content

What's hot

Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialRakesh Gujjarlapudi
 
2 refworks 2.0 direct import
2 refworks 2.0 direct import2 refworks 2.0 direct import
2 refworks 2.0 direct importUCT
 
Creating Workflows Windows Share Point Services
Creating Workflows Windows Share Point ServicesCreating Workflows Windows Share Point Services
Creating Workflows Windows Share Point ServicesLiquidHub
 
Metamorphosis from Forms to Java: A technical lead's perspective, part II
Metamorphosis from Forms to Java:  A technical lead's perspective, part IIMetamorphosis from Forms to Java:  A technical lead's perspective, part II
Metamorphosis from Forms to Java: A technical lead's perspective, part IIMichael Fons
 
Less07 2 e_testermodule_6
Less07 2 e_testermodule_6Less07 2 e_testermodule_6
Less07 2 e_testermodule_6Suresh Mishra
 
5) running applications
5) running applications5) running applications
5) running applicationstechbed
 
Installing and Configuring Oracle Beehive Clients (whitepaper)
Installing and Configuring Oracle Beehive Clients (whitepaper)Installing and Configuring Oracle Beehive Clients (whitepaper)
Installing and Configuring Oracle Beehive Clients (whitepaper)Revelation Technologies
 
Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Suresh Mishra
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabVinh Nguyen
 
Creating a dot netnuke
Creating a dot netnukeCreating a dot netnuke
Creating a dot netnukeNguyễn Anh
 
Crystal report
Crystal reportCrystal report
Crystal reportEverywhere
 
1) workbench basics
1) workbench basics1) workbench basics
1) workbench basicstechbed
 
Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013Randy Williams
 
Linux VMWare image with Informatica , Oracle and Rundeck scheduler
Linux VMWare image with Informatica , Oracle and Rundeck schedulerLinux VMWare image with Informatica , Oracle and Rundeck scheduler
Linux VMWare image with Informatica , Oracle and Rundeck schedulerpcherukumalla
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Vivek chan
 
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...Ravi Kumar Lanke
 
Crystal reports seminar
Crystal reports seminarCrystal reports seminar
Crystal reports seminarteope_ruvina
 
Less13 3 e_loadmodule_3
Less13 3 e_loadmodule_3Less13 3 e_loadmodule_3
Less13 3 e_loadmodule_3Suresh Mishra
 

What's hot (20)

Oracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning TutorialOracle ADF 11g Skinning Tutorial
Oracle ADF 11g Skinning Tutorial
 
2 refworks 2.0 direct import
2 refworks 2.0 direct import2 refworks 2.0 direct import
2 refworks 2.0 direct import
 
Creating Workflows Windows Share Point Services
Creating Workflows Windows Share Point ServicesCreating Workflows Windows Share Point Services
Creating Workflows Windows Share Point Services
 
Metamorphosis from Forms to Java: A technical lead's perspective, part II
Metamorphosis from Forms to Java:  A technical lead's perspective, part IIMetamorphosis from Forms to Java:  A technical lead's perspective, part II
Metamorphosis from Forms to Java: A technical lead's perspective, part II
 
Less07 2 e_testermodule_6
Less07 2 e_testermodule_6Less07 2 e_testermodule_6
Less07 2 e_testermodule_6
 
5) running applications
5) running applications5) running applications
5) running applications
 
Installing and Configuring Oracle Beehive Clients (whitepaper)
Installing and Configuring Oracle Beehive Clients (whitepaper)Installing and Configuring Oracle Beehive Clients (whitepaper)
Installing and Configuring Oracle Beehive Clients (whitepaper)
 
Less10 2 e_testermodule_9
Less10 2 e_testermodule_9Less10 2 e_testermodule_9
Less10 2 e_testermodule_9
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
 
Creating a dot netnuke
Creating a dot netnukeCreating a dot netnuke
Creating a dot netnuke
 
Crystal report
Crystal reportCrystal report
Crystal report
 
Siebel Web Service
Siebel Web ServiceSiebel Web Service
Siebel Web Service
 
1) workbench basics
1) workbench basics1) workbench basics
1) workbench basics
 
Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013Integrating SharePoint with Exchange-2013
Integrating SharePoint with Exchange-2013
 
Linux VMWare image with Informatica , Oracle and Rundeck scheduler
Linux VMWare image with Informatica , Oracle and Rundeck schedulerLinux VMWare image with Informatica , Oracle and Rundeck scheduler
Linux VMWare image with Informatica , Oracle and Rundeck scheduler
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...
Oracle endeca information discovery v3.0 integration with the obiee 11g bi se...
 
Crystal reports seminar
Crystal reports seminarCrystal reports seminar
Crystal reports seminar
 
Less13 3 e_loadmodule_3
Less13 3 e_loadmodule_3Less13 3 e_loadmodule_3
Less13 3 e_loadmodule_3
 

Viewers also liked

Mobile application
Mobile applicationMobile application
Mobile applicationaspnet123
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibilityaspnet123
 
User controls
User controlsUser controls
User controlsaspnet123
 
Programming web application
Programming web applicationProgramming web application
Programming web applicationaspnet123
 
Introducing asp
Introducing aspIntroducing asp
Introducing aspaspnet123
 
Custom controls
Custom controlsCustom controls
Custom controlsaspnet123
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,aspnet123
 
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบีความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบีPheeranan Thetkham
 

Viewers also liked (9)

Mobile application
Mobile applicationMobile application
Mobile application
 
Globalization and accessibility
Globalization and accessibilityGlobalization and accessibility
Globalization and accessibility
 
Profile
ProfileProfile
Profile
 
User controls
User controlsUser controls
User controls
 
Programming web application
Programming web applicationProgramming web application
Programming web application
 
Introducing asp
Introducing aspIntroducing asp
Introducing asp
 
Custom controls
Custom controlsCustom controls
Custom controls
 
Monitoring, troubleshooting,
Monitoring, troubleshooting,Monitoring, troubleshooting,
Monitoring, troubleshooting,
 
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบีความรู้เกี่ยวกับอินเทอร์เน็ตบี
ความรู้เกี่ยวกับอินเทอร์เน็ตบี
 

Similar to Deploying configuring caching

Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Roberto Boccadoro
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityPeter Gfader
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingSarah Elson
 
( 4 ) Office 2007 Configure The Official Records Site
( 4 ) Office 2007   Configure The Official Records Site( 4 ) Office 2007   Configure The Official Records Site
( 4 ) Office 2007 Configure The Official Records SiteLiquidHub
 
M365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionM365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionThomas Daly
 
Katalon Studio - GUI Overview
Katalon Studio - GUI OverviewKatalon Studio - GUI Overview
Katalon Studio - GUI OverviewKatalon Studio
 
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019  PAM365 global developer bootcamp 2019  PA
M365 global developer bootcamp 2019 PAThomas Daly
 
Alfresco : Implementing Business Rules
Alfresco : Implementing Business RulesAlfresco : Implementing Business Rules
Alfresco : Implementing Business RulesWildan Maulana
 
Web application development process
Web application development processWeb application development process
Web application development processJohn Smith
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019Thomas Daly
 
( 4 ) Office 2007 Configure The Official Records Site
( 4 ) Office 2007   Configure The Official Records Site( 4 ) Office 2007   Configure The Official Records Site
( 4 ) Office 2007 Configure The Official Records SiteLiquidHub
 
Configuration manager
Configuration managerConfiguration manager
Configuration managerRaghu nath
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...guest96f6c68d
 

Similar to Deploying configuring caching (20)

Components lab
Components labComponents lab
Components lab
 
Components lab
Components labComponents lab
Components lab
 
Installing community surveys in connections 5.5
Installing community surveys in connections 5.5Installing community surveys in connections 5.5
Installing community surveys in connections 5.5
 
N-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and SecurityN-Tier Application with Windows Forms - Deployment and Security
N-Tier Application with Windows Forms - Deployment and Security
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
 
( 4 ) Office 2007 Configure The Official Records Site
( 4 ) Office 2007   Configure The Official Records Site( 4 ) Office 2007   Configure The Official Records Site
( 4 ) Office 2007 Configure The Official Records Site
 
M365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx VersionM365 global developer bootcamp 2019 Intro to SPFx Version
M365 global developer bootcamp 2019 Intro to SPFx Version
 
Katalon Studio - GUI Overview
Katalon Studio - GUI OverviewKatalon Studio - GUI Overview
Katalon Studio - GUI Overview
 
Application slides
Application slidesApplication slides
Application slides
 
M365 global developer bootcamp 2019 PA
M365 global developer bootcamp 2019  PAM365 global developer bootcamp 2019  PA
M365 global developer bootcamp 2019 PA
 
Alfresco : Implementing Business Rules
Alfresco : Implementing Business RulesAlfresco : Implementing Business Rules
Alfresco : Implementing Business Rules
 
Web application development process
Web application development processWeb application development process
Web application development process
 
unit 4.docx
unit 4.docxunit 4.docx
unit 4.docx
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019
 
( 4 ) Office 2007 Configure The Official Records Site
( 4 ) Office 2007   Configure The Official Records Site( 4 ) Office 2007   Configure The Official Records Site
( 4 ) Office 2007 Configure The Official Records Site
 
Microsoft Lync Server 2010 Installation
Microsoft Lync Server 2010 InstallationMicrosoft Lync Server 2010 Installation
Microsoft Lync Server 2010 Installation
 
Configuration manager
Configuration managerConfiguration manager
Configuration manager
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...
Developing Dynamic PeopleSoft Field Security Applications:A PeopleSoft Develo...
 

Recently uploaded

Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentationyogeshlabana357357
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Hiroshi SHIBATA
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 

Recently uploaded (20)

Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 

Deploying configuring caching

  • 1.
  • 2. After you’ve developed and tested your application, it’s time to deploy it to a production environment.  The deployment process can be automated with tools and scripts, managed and governed by IT departments, or deployed directly by developers through Microsoft Visual Studio.  Additionally, many Web developers must release their applications commercially; this means other people need to be able to deploy them in environments that the developer knows nothing about.
  • 3. There are times, when you might need more control over how your application gets deployed.  Check dependencies (such as particular operating system versions or service packs),  add registry entries for your application,  download and install prerequisites,  set security,  add dependent dynamic-link libraries (DLLs),  and so on.
  • 4. For all these purposes you will find a number of setup Editors of following types in the View menu of Visual Studio :  Launch Conditions  Registry  User Interface  Custom Actions  File System  File Types
  • 5. A launch condition is used to check the requirements for your application installation.  For example, you can check for specific versions of Windows or verify that specific service packs are present before you allow an install.  Launch conditions can provide a useful message to the user if a requirement is missing.
  • 6. Following are the common launch conditions :  File Launch Condition : if you want to verify that a specific DLL is present  Registry Launch Condition : search a target computer for a specific registry key or value  Windows Installer Launch Condition : to determine if a specific package is installed  .NET Framework Launch Condition : checks the runtime version of the .NET Framework on the target computer  Internet Information Services Launch Condition : This searches for the presence of the right version of Microsoft Internet Information Services (IIS
  • 7. To create and manage new launch conditions, you use the Launch Conditions editor in the View menu.  There are two main branches of the Launch Conditions editor: • Search Target Machine • Launch Conditions  Typically, you must add an item to each of these two nodes.  For example, if you want to verify that a specific DLL is present, you must Add File Search under Search Target Machine and store the result of the search in a property. You then Add Launch Condition under Launch Conditions that uses the search condition’s property.
  • 8. To add a basic search condition, start by right-clicking the Search Target Machine node in the Launch Conditions editor. You will have three search condition types to choose from:  File Search This search type allows you to define a search for a file. You set the FileName to the name of the file you are searching for, the Folder to search, and the Property to a variable name you use for tracking the results of the search.  Registry Search This search type allows you to specify a registry search. You set the Root property to a place to start looking in the registry, the RegKey to a registry key to search for, and the Value property to a value you hope to be set for the given key. You store the results of your search in the Property property as a variable name that can be used in a related launch condition.  Windows Installer Search This search type allows you to search for a registered component. You set the ComponentId to a GUID of the component for which you are searching. You set the Property property to a variable that indicates the results of your search.
  • 9. Right-click the Launch Conditions folder, and then select Add Launch Condition.  With the new launch condition selected, view the Properties window to configure your launch condition.  You can set the Condition property to match the Property value of a search condition or specify a different condition.  To download software to resolve the missing launch condition, provide a URL in the InstallUrl property.  In the Message property, type a message to be displayed to the person installing your Web application if a condition is not met.
  • 10. To create a grouped launch condition, you right-click the root node, Requirements On Target Machine.  Doing so simply creates both a search and a launch condition. However, these items are preconfigured to work together. You simply need to tweak their properties according to your needs.
  • 11. Although rare, there might still be times when you need to add registry entries during setup.  From the View menu, select Registry Editor.  To add a registry setting in a nested key, you need to add each nested key to the editor. For example, to add a setting to HKEY_LOCAL_MACHINESOFTWAREMicrosoftASP.NET, you need to add the SOFTWARE, Microsoft, and ASP.NET keys to the HKEY_LOCAL_MACHINE hive in the Registry Settings editor.  Right-click the key to which you want to add a setting, select New, and then select String Value, Environment String Value, Binary Value, or DWORD Value. Type the name of the value, and then press Enter.
  • 12. Administrators responsible for deploying and managing your Web applications can also add custom setup wizard pages.  These pages enable you to perform the following types of tasks:  Display a license agreement A Web Setup Project provides a dialog box template for requiring the user to accept a license agreement.  Modify settings in the Web.config file You can use user input to modify configuration settings without requiring administrators to know how to configure an Extensible Markup Language (XML) file.
  • 13. Perform custom configuration You can use a custom configuration to prompt the user for information that might be stored in the registry or in another unusual location.  Activate or register your application You can prompt the user for a product key or registration information. Prompts can be either required or optional.  To add a custom setup wizard page to your Web deployment project, you use the View | User Interface Editor
  • 14. You add a custom action to your setup project through the View | Custom Actions Editor  The Custom Actions editor displays the four setup phases. You can right-click the phase to which you want to add a custom action.  You then select Add Custom Action. Doing so launches the Select Item In Project dialog box.  From here you can select to add a custom .exe or script file from current project or elsewhere to execute at the appropriate phase of deployment.
  • 15. Custom actions can run in any of the four phases of setup:  Install This phase performs the bulk of the work done during setup  Commit This phase finalizes these changes. After the Commit phase, setup cannot be rolled back and the application should be uninstalled with Add or Remove Programs.  RollBack The Rollback phase runs only if setup fails or is cancelled. It occurs instead of the Commit phase and removes any new files or settings.  Uninstall This phase removes files and settings from the computer when the application is removed with Add or Remove Programs.
  • 16. There are typically two generated to the target build directory for Web Setup Projects:  Setup.exe  <Websetupprojectname>.msi  Although users are more familiar with using Setup.exe to install an application, the .msi file is smaller, far more versatile, and familiar to most systems administrators.  The only disadvantage to deploying the application with the .msi file is that the target Web server must have Windows Installer. Most Web servers already have this component, however.
  • 17. There are many scenarios in which you simply need to copy changes between two servers.  There might be some changes from your development environment up to staging or even from staging to production in some limited scenarios.  In these cases, you can use the Copy Web tool to publish changes between source and remote sites.  You can also use the tool to synchronize files.  This involves copying only changed files and detecting possible versioning conflicts in which the same file on both the source and remote site have been separately edited.
  • 18. To launch the Copy Web tool you typically open the Web site you intend as the source. Then right-click the site in Solution Explorer and choose Copy Web Site.  The Copy Web tool displays two panes: Source Web Site and Remote Web Site.  To set up a remote Web site, you must create a connection by clicking Connect at the top of the tool.  This launches the Open Web Site dialog box, which allows you to find a Web site.
  • 19. You can copy or synchronize files between the source and the remote Web site in several different ways:  Copy individual files in either direction  Copy the entire site Right-click the Source Web Site pane, and then select Copy Site To Remote. To copy the Remote Web Site to the source Web site, right-click the Remote Web Site pane, and then select Copy Site To Source.  Synchronize individual files Select files in either the source or remote Web site, and then click Synchronize Selected Files.  Synchronize the entire site Right-click the Source Web Site pane, and then select Synchronize Site.
  • 20. To precompile and publish a Web application, follow these steps: 1. Open the Web site you wish to precompile and publish. 2. Next, you can right-click your Web application in Solution Explorer and select Publish Web Site. Alternatively, you can select the Build menu and then choose Publish Web Site. 3. In the Publish Web Site dialog box, specify a location to which to publish.
  • 21. ASP.NET caching stores frequently accessed data or whole Web pages in memory where they can be retrieved faster than they could be from a file or database.  Data that changes infrequently and is accessed by a lot of users is a good candidate for caching.  The first access of this data would load it into the cache; subsequent requests would be served from the cache until the cache expires.
  • 22. There are two different types of caching in ASP. NET:  Application caching : This represents a collection that can store any object in memory and automatically remove the object based on memory limitations, time limits, or other dependencies.  Page output caching : This is ASP.NET’s ability to store a rendered page, portion of a page, or version of a page in memory to reduce the time required to render the page in future requests.
  • 23. Application caching (also called application data caching) is the process of storing data (and not pages) in a cache object. The cache object is available as a property of the Page object.  It represents a collection class of type System.Web.Caching.Cache.  The Page.Cache property actually uses an application- wide cache (and not just a page-specific cache).  This means that a single Cache object exists for your entire application; items in the Cache can be shared between user sessions and requests
  • 24. You work with the Cache object like you would Session or similar objects. You can assign items directly to the cache by giving them a name (key) and assigning them an object (value). Cache["Greeting"] = "Hello, world!"; if (Cache["Greeting"] != null) value = (string)Cache["Greeting"]; else value = "Hello, world!";  You wouldn’t normally cache a static string in your application; you’d more likely cache a file, a database query result, or other data that is shared and expensive to obtain.
  • 25. The Cache object has both the Add and Insert methods.  Both define the same set of parameters and do the same thing behind the scenes.  The Add method returns the item added to the cache. The Add method is meant to comply with the collection interface.  The Insert method, however, has been the preferred method for adding items to the cache. It has a number of overloads based on the many parameters you can set when adding an item to the cache.
  • 26. A cache dependency links a cached item to something else such as a file or another item in the cache.  ASP.NET monitors the dependency and invalidates the cache if the dependent item changes.  Cache.Insert("FileCache", "CacheContents", new System.Web.Caching.CacheDependency( Server.MapPath("SourceFile.xml")));
  • 27. Many times you want to cache data for a specific amount of time.  This allows you to limit the amount of time between cache refresh.  To do so, you pass the absoluteExpiration parameter to the Cache.Insert method.  Cache.Insert("FileCache", "CacheContents", null, DateTime.Now.Add Minutes(10), Cache.NoSlidingExpiration);
  • 28. Sliding expiration indicates the amount of time that must elapse between subsequent requests before an item is removed from the cache.  This allows most frequently used cached objects to stay in your cache longer  You set a sliding expiration by passing a TimeSpan to the slidingExpiration parameter of the Insert method.
  • 29. After a Web browser retrieves a page, the browser often keeps a copy of the page on the local computer.  The next time the user requests the page, the browser simply verifies that the cached version is still valid, and then displays the cached page to the user.  This improves the responsiveness of the site by decreasing the time required to load the page. It also reduces the load on the server because the server is not required to render a page.