SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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 a 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 a 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...
 

Último

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

Último (20)

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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.