Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Appendix A. ASP.NET and IIS 7.x - Pg. 441

appendix A: ASP.NET and IIS 7.x Starting with IIS 7.0, which is included in Windows Server 2008 and Windows Vista, . NET Framework became part of the web server, using a new architecture that enables direct execution of managed code. IIS 7.0 introduced a new pipeline called an integrated pipeline, which treats ASP . NET modules the same way IIS 6.0 treats native ones. You can write your own extensions to web server request and response handling using the same model that ASP . NET uses for HttpModule s, and you can apply them to all kinds of requests, not only ASP . NET ones. This appendix will analyze how to extend IIS and how to integrate it with ASP . NET . A.1 What's new in IIS 7.5 IIS 7.5 is available on top of Windows Server 2008 R2 and Windows 7 (because they share the same base kernel). As in version 7.0, IIS 7.5 can host services in addition to web applications. In fact, you can host WCF services natively using another bind- ing protocol, just like direct TCP support lets you do. Starting with this version, IIS can use ASP . NET in Windows Server Core, a spe- cific version of Windows Server, using versions 2.0, 3.0 ( WCF ), 3.5 SP 1, and, of course, 4.0. Now you can finally host applications with different ASP . NET versions (like 2.0 and 4.0) in the same application pool. IIS 7.5 introduces support for PowerShell 2.0, a technology that uses managed code to perform administrative tasks from the command line. PowerShell has a better administration UI than did previous versions, supports Visual Studio one-click pub- lishing to deploy web sites, and has configuration tracking capabilities. Last but not least, a lot of the extensions previously available at http://www.iis.net/extensions/ are now integrated. Those modules are still valid if you're using IIS 7.0. In this section, we'll take a look at how you can modify IIS behavior in both ASP . NET and non- ASP . NET applications. You can do that by writing special modules that come directly from ASP . NET and that are now extended to be part of IIS , too. 441