Online Book Reader

Home Category

Programming Microsoft ASP.NET 4 - Dino Esposito [596]

By Root 5228 0

The Standalone ASP.NET Worker Process

The IIS Native Worker Process

A Shared Pipeline of Components

The Journey of an HTTP Request in IIS

Events in the Request Life Cycle

ASP.NET Request Processing in Integrated Pipeline Mode

Building a Response for the Request

Adding Your Own Code to the Pipeline

Some New Features in IIS 7.5

Autostarting Web Applications

Application Pool Custom Identities

Deploying ASP.NET Applications

XCopy Deployment for Web Sites

The Copy Web Site Function of Visual Studio 2010

Copying Files

Building a Setup Project

Packaging Files and Settings

The Web Deployment Tool

Building a WDT Package

Propagating IIS Settings

Web.config Transformations

Site Precompilation

In-Place Precompilation

Precompilation for Deployment

Configuring IIS for ASP.NET Applications

Recycling Policies

Unexpected Restarts

Output Caching Settings

Application Warm-up and Preloading

Behavior of a Warmed-up Application Pool

Setting Up the Application Pool

Specifying the Warm-up Code

Summary

3. ASP.NET Configuration

The ASP.NET Configuration Hierarchy

Configuration Files

The Tree of Configuration Files

The Configuration Schema

Sections and Section Groups

The Section

Centralized Configuration

Machinewide Settings

Unmodifiable Settings

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

The Section

Other Top-Level Sections

The Section

The Section

The Section

The Section

The Section

Managing Configuration Data

Using the Configuration API

Retrieving Web Configuration Settings

Retrieving Application Settings

Updating Application Settings

Encrypting a Section

Using a Command-Line Tool

Using a Programmatic Approach

Choosing the Encryption Provider

Creating Custom Configuration Sections

Summary

4. HTTP Handlers, Modules, and Routing

Writing HTTP Handlers

The IHttpHandler Interface

Members of the IHttpHandler Interface

A Very Simple HTTP Handler

Registering the Handler

Preconditions for Managed Handlers

Handlers Serving New Types of Resources

The Picture Viewer Handler

Designing the HTTP Handler

Implementing the HTTP Handler

Serving Images More Effectively

Loading Images from Databases

Serving Dynamically Generated Images

Writing Copyright Notes on Images

Controlling Images via an HTTP Handler

Advanced HTTP Handler Programming

Deploying Handlers as ASHX Resources

Prevent Access to Forbidden Resources

Should It Be Reusable or Not?

HTTP Handler Factories

Asynchronous Handlers

Implementing Asynchronous Handlers

Writing HTTP Modules

The IHttpModule Interface

A Custom HTTP Module

Wiring Up Events

Registering with the Configuration File

Accessing Other HTTP Modules

Examining a Real-World HTTP Module

The UrlRoutingModule Class

The PostResolveRequestCache

Return Main Page Previous Page Next Page

®Online Book Reader