Book description
The deep integration of IIS7 and ASP.NET provides both IIS7 administrators and ASP.NET developers with new and exciting programming tools, techniques, and approaches that were not possible with earlier versions of IIS. With this book, Dr. Shahram Khosravi presents you with the only resource to focus exclusively on the key features of this exciting integration.
You'll get in-depth coverage of all the major systems that make up the IIS7 and ASP.NET integrated infrastructure, detailed explanations on how they work, guidance on how to use them in your own applications, and techniques for extending them to meet your application requirements.
Packed with detailed code walkthroughs and in-depth analyses of numerous real-world examples - all written and tested with Windows Vista, Windows Server 2008, ASP.NET 2.0, and ASP.NET 3.5 (Visual Studio 2008), this book helps you gain the skills, knowledge, and experience you need to use and to extend the major systems that make up the IIS7 and ASP.NET integrated infrastructure.
Some of the key topics covered include:
How to write integrated IIS7 and ASP.NET code that works with Windows Vista, Windows Server 2008, ASP.NET 2.0, and ASP.NET 3.5 (Visual Studio 2008)
Techniques for implementing and plugging custom HTTP modules, handlers, and handler factories into the IIS7 and ASP.NET integrated request processing pipeline
How to manage the IIS7 and ASP.NET integrated configuration system from IIS7 Manager, appcmd.exe, and managed code
Tips for using the IIS7 and ASP.NET integrated declarative schema extension markup language (<sectionSchema>, <attribute>, <element>, <collection>, and so on) to implement custom configuration sections
Techniques for using and extending the IIS7 and ASP.NET integrated managed code system (ConfigurationElement, ConfigurationElementCollectionBase<T>, ConfigurationSection, ApplicationPool, Site, Application, ServerManager and so on) to add support for custom managed classes
Tips for extending the IIS7 and ASP.NET integrated graphical management system (ModuleServiceProxy, ModuleDialogPage, ModuleListPage, TaskForm, Module, ModuleService, ModuleProvider, TextTaskItem, MethodTaskItem, and so on) to add new graphical components to IIS7 Manager
Techniques for using and extending the IIS7 and ASP.NET integrated providers system (ProviderConfigurationFeature, ProviderConfigurationSettings, IProviderConfigurationService, ConfigurationModuleProvider, and so on) and ways to implement and to plug custom provider-based services into this system and IIS7 Manager
Ways to use the IIS7 and ASP.NET integrated tracing and diagnostics - TraceSource, SourceSwitch, IisTraceListener, EventTypeFilter, RSCA, Request, WorkerProcess, Failed Request Tracing, and so on
ASP.NET and Windows Communication Foundation integration in IIS7
Table of contents
- Copyright
- About the Author
- Credits
- Acknowledgments
- Introduction
- 1. IIS 7 and ASP.NET Integrated Architecture
-
2. Using the Integrated Configuration System
- 2.1. Integrated Configuration System
- 2.2. Protocol Listeners
- 2.3. Windows Process Activation Service
- 2.4. World Wide Web Publishing Service
- 2.5. The Structure of the applicationHost.config File
- 2.6. Summary
- 3. Managing the Integrated Configuration System from IIS Manager and the Command Line
-
4. Managing the Integrated Configuration System with Managed Code
- 4.1. Class Diagrams
- 4.2. ConfigurationElement
- 4.3. ConfigurationElementCollectionBase<T>
- 4.4. ApplicationPool
- 4.5. ApplicationPoolCollection
- 4.6. Site
- 4.7. Application
- 4.8. ApplicationCollection
- 4.9. VirtualDirectory
- 4.10. VirtualDirectoryCollection
- 4.11. ConfigurationSection
- 4.12. ServerManager
-
4.13. Putting It All Together
- 4.13.1. Recipe for Loading a Specified Configuration File
- 4.13.2. Recipe for Accessing the Specified Attribute of a Specified Configuration Section
- 4.13.3. Recipe for Adding or Removing an Element from the Specified Collection Element of a Specified Configuration Section
- 4.13.4. Recipe for Accessing the Configuration Sections in the <system.applicationHost> Section Group
- 4.14. Summary
- 5. Extending the Integrated Configuration System and Imperative Management API
-
6. Understanding the Integrated Graphical Management System
- 6.1. Module Pages
- 6.2. Tasks
- 6.3. The IIS7 Manager Object Model
- 6.4. Putting It All Together
- 6.5. Summary
-
7. Extending the Integrated Graphical Management System
- 7.1. Client-Side Managed Code
- 7.2. Custom Module Pages and Task Forms in Action
- 7.3. Proxies
-
7.4. MyConfigSectionPage
- 7.4.1. Constructor
- 7.4.2. Event Handlers
- 7.4.3. HasChanges Property
- 7.4.4. CanApplyChanges Property
- 7.4.5. OnActivated
- 7.4.6. GetSettings
- 7.4.7. OnWorkerGetSettings
- 7.4.8. OnWorkerGetSettingsCompleted
- 7.4.9. MyConfigSectionInfo
- 7.4.10. InitializeUI
- 7.4.11. ApplyChanges
- 7.4.12. GetValues
- 7.4.13. CancelChanges
- 7.4.14. Adding Support for New Task Items
- 7.4.15. Refreshing
-
7.5. MyCollectionPage
- 7.5.1. InitializeListPage
- 7.5.2. OnActivated
- 7.5.3. GetCollectionItems
- 7.5.4. OnWorkerGetCollectionItems
- 7.5.5. OnWorkerGetCollectionItemsCompleted
- 7.5.6. MyCollectionItemInfo
- 7.5.7. MyCollectionItemListViewItem
- 7.5.8. AddItem
- 7.5.9. Adding Support for New Task Items
- 7.5.10. OnListViewBeforeLabelEdit
- 7.5.11. OnListViewAfterLabelEdit
- 7.5.12. OnListViewDoubleClick
- 7.5.13. OnListViewKeyUp
- 7.5.14. OnListViewSelectedIndexChanged
- 7.5.15. Grouping
- 7.5.16. Refreshing
- 7.6. MyCollectionItemTaskForm
- 7.7. Module
- 7.8. Server-Side Managed Code
- 7.9. Deployment
- 7.10. Summary
-
8. Extending the Integrated Request Processing Pipeline
- 8.1. Extending the Integrated Pipeline through Managed Code
- 8.2. Managed Handlers
- 8.3. Managed Modules
- 8.4. Managed Handler Factories
- 8.5. Extending the Integrated Pipeline with Configurable Managed Components
- 8.6. Configuration Support for the URL Rewriting Managed Module
- 8.7. Imperative Management Support for the URL Rewriting Managed Module
- 8.8. Graphical Management Support for the URL Rewriter Managed Module
-
8.9. Client-Side Managed Code
- 8.9.1. Communications with the Back-End Server
-
8.9.2. UrlRewriterPage
- 8.9.2.1. InitializeListPage
- 8.9.2.2. OnActivated
- 8.9.2.3. GetUrlRewriterSettings
- 8.9.2.4. OnWorkerGetUrlRewriterSettings
- 8.9.2.5. OnWorkerGetUrlRewriterSettingsCompleted
- 8.9.2.6. UrlRewriterRuleInfo
- 8.9.2.7. UrlRewriterRuleListViewItem
- 8.9.2.8. AddItem
- 8.9.2.9. Adding Support for New Task Items
- 8.9.2.10. OnListViewSelectedIndexChanged
- 8.9.2.11. OnListViewDoubleClick
- 8.9.2.12. OnListViewKeyUp
- 8.9.3. UrlRewriterRuleTaskForm
- 8.9.4. UrlRewriterModule
- 8.10. Server-Side Managed Code
- 8.11. Registering UrlRewriterModuleProvider
- 8.12. Configurable UrlRewriterModule
- 8.13. Rewriting Non-ASP.NET URLs
- 8.14. Postback Problem with URL Rewriting
- 8.15. Summary
-
9. Understanding the Integrated Providers Model
- 9.1. Why You Need Provider-Based Services
- 9.2. The Integrated Providers Model in Action
-
9.3. Under the Hood of the Integrated Providers Model
- 9.3.1. ProviderFeature
- 9.3.2. ProviderConfigurationSettings
-
9.3.3. Putting it All Together
- 9.3.3.1. Workflow that Displays the ProviderConfigurationConsolidatedPage Module List Page
- 9.3.3.2. Workflow for Viewing the Providers of a Provider-Based Service
- 9.3.3.3. Workflow for Adding a New Provider to a Provider-Based Service
- 9.3.3.4. Workflow for Updating a Provider of a Provider-Based Service
- 9.3.4. IProviderConfigurationService
- 9.4. Summary
-
10. Extending the Integrated Providers Model
- 10.1. Recipe
- 10.2. Custom Provider Base Class
- 10.3. Custom Provider Collection
- 10.4. Extending the Integrated Configuration System
- 10.5. Extending the Integrated Imperative Management System
- 10.6. Implementing the Service Class
- 10.7. Implementing Custom Providers
-
10.8. Extending the Integrated Graphical Management System
-
10.8.1. Client-Side Managed Code
- 10.8.1.1. Implementing a Custom Provider Configuration Settings Class
- 10.8.1.2. Implementing a Custom Provider Feature
- 10.8.1.3. Implementing a Custom Section PropertyBag Wrapper Class
- 10.8.1.4. Implementing a Custom Module Service Proxy
-
10.8.1.5. Implementing a Custom Module Page
- 10.8.1.5.1. InitializeComponent
- 10.8.1.5.2. OnActivated
- 10.8.1.5.3. ApplyChanges
- 10.8.1.5.4. CancelChanges
- 10.8.1.5.5. PageTaskList
- 10.8.1.5.6. EnableRss
- 10.8.1.5.7. DisableRss
- 10.8.1.5.8. ConfigureRssProvider
- 10.8.1.5.9. SetDefaultProvider
- 10.8.1.5.10. Tasks
- 10.8.1.5.11. ProviderConfigurationService
- 10.8.1.5.12. ReadOnly
- 10.8.1.5.13. Refreshing
- 10.8.1.5.14. RssEnabled
- 10.8.1.6. Implementing a Custom Task Form
- 10.8.1.7. Implementing a Custom Module
- 10.8.2. Server-Side Managed Code
-
10.8.1. Client-Side Managed Code
- 10.9. Summary
-
11. Integrated Tracing and Diagnostics
- 11.1. Integrated Tracing Components
- 11.2. Tasks Performed from within Your Code
- 11.3. Tasks Performed from the Configuration File
- 11.4. Putting It All Together
- 11.5. Configurable Tracing
- 11.6. Runtime Status and Control API
- 11.7. LogRequest
- 11.8. Summary
-
12. ASP.NET and Windows Communication Foundation Integration in IIS 7
- 12.1. Installing the Required Software
- 12.2. Bug Report Manager
- 12.3. Windows Communication Foundation Service
- 12.4. Windows Communication Foundation Endpoint
- 12.5. Windows Communication Foundation Service Model
- 12.6. Developing a WCF Service
- 12.7. Developing a WCF Service Contract
- 12.8. Implementing a WCF Service Contract
- 12.9. Hosting a WCF Service
- 12.10. Administrative Tasks
- 12.11. Developing a Windows Communication Foundation Client
- 12.12. Taking Advantage of ASP.NET and WCF Integration in IIS 7
- 12.13. Using Different Bindings
- 12.14. Putting It All Together
- 12.15. Summary
Product information
- Title: Professional IIS 7 and ASP.NET Integrated Programming
- Author(s):
- Release date: October 2007
- Publisher(s): Wrox
- ISBN: 9780470152539
You might also like
book
Programming Microsoft® ASP.NET 3.5
Get the practical, popular reference written by ASP.NET authority Dino Esposito now updated for ASP.NET 3.5. …
book
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition
The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 3.5 …
book
Microsoft® ASP.NET 2.0 Step By Step
The Web application infrastructure ASP.NET, introduced as part of version 1.0 of the Microsoft .NET Framework, …
book
Professional ASP.NET 3.5 SP1 Edition: In C# and VB
Professional ASP.NET 3.5 SP1 In C# and VB ASP.NET 3.5 brings the power of Visual Studio® …