WinInfo Daily News   |   Windows IT Pro
in
Microsoft Technet

IT Pro Tips


IIS-Core Server

By Will Kelly

I was drawn to the IIS-Core Server virtual lab after poking around the IIS 7.0 specifications and began to wonder about the development options including .NET and Native C/C++ modules. However, I needed a “sandbox” to play in since my dev environment was devoted to a client project and a lab manual that was detailed enough to serve as a reference down the road.

Download the lab manual and print it out because it contains the lab exercises. It can also be a useful reference to you later on.

The lab starts off with an introduction that sets the stage for the lab and a section that offers a useful review about Basic Authentication.

After the introductory and refresher material about Basic Authentication, the lab delves into its first task—Developing a Module with .NET. The lab takes the time to first examine the development of a basic authentication module that supports the http1.1 basic authentication scheme. This module uses the standard ASP.NET module pattern that has been available since ASP.NET v1.0 and the very same pattern is used to build ASP.NET modules that extend the IIS7 server. This direct approach into IIS7 Server development was most helpful to me.

After creating the class, the lab wastes no time and walks you through implementation of the Init method with registering the module for one or more request pipeline events.

Next the lab tackles how to create the AuthenticateUser method. This is an important step because at the end of this processing, if the module was successfully able to obtain and validate the user credentials, it will produce an authenticated user principal that other modules and application codes can later use in access control decisions.

After creating the AuthenticateUser method, it’s time to implement the IssueAuthenticationChallenge method following the lab’s methodical approach to module development.

The final element of the first task takes you through how to create utility methods.

The second task of the lab walks through deploying the module to the application by first presenting the options you have for deploying the module to the application. Deployment in a production environment leaves no room for experimentation so I enjoyed being able to test out various module deployment methods within the lab’s “sandbox” because I was able to play to my heart’s content.

Source code is a must have in programming labs, and the lab finishes off with appendices including the Basic Authentication Module Source Code and other supplementary information that can help fuel more ideas and show you the true power of developing for the IIS environment. You can walk through the lab yourself here:

IIS 7.0 -Core Server Virtual Lab

Published Jan 17 2008, 12:01 AM by itprotipsadmin
Filed under:

Comments

No Comments
SPONSORED LINKS FEATURED LINKS

Drag & Drop Data Mapping ToolTry this award-winning data mapping, & transformation tool that supports multiple databases, flat files, Web services, EDI, Excel 2007, & more! Free trial for 30 days! Overcome bloated Windows file systemsCrossroads FMA delivers powerful yet inexpensive data migration Bandwidth Monitoring Tool from SolarWindsIdentify largest bandwidth users in seconds. Get the free download now. Speed Deployment of Vista and Microsoft OfficeRead this white paper to learn how you can maximize your Vista and Office investments while lowering costs and increasing efficiency. Integrated Virtualization Done RightDownload this white paper on server virtualization to begin improving resource utilization and lowering operating costs. Order Your Fundamentals CD Today! Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD. KVM over IP SolutionsLearn about a KVM over IP solution that is specifically designed to meet the needs of the distributed IT environment. Shortcut Guide to SQL Server Infrastructure OptimizationWith right tools and techniques, you can have a top-performing SQL Server infrastructure without having to cram your data centers so that they're overflowing. Download this eBook to learn how. WinConnections Conference Fall 2008Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay). Become a fan of Windows IT Pro on Facebook!Join us on Facebook and be a fan of Windows IT Pro! Continuous Data Protection and Recovery for Exchange Read this white paper to learn about Continuous Data Protection (CDP), Exchange 2007's local continuous replication and cluster continuous replication features. Rev Up Your IT Know-How with Our Recharged Magazine!The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today! Tips to Managing MessagingDiscover three fundamental mail and messaging management services - security, availability and control services - and how you can implement them in a Microsoft-centric mail and messaging environment. Get It All with Windows IT Pro VIPStock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!
Windows IT Pro |  SQL |  Connected Home |  IT Library |  SuperSite |  FAQ |  WinInfo News |  Europe Edition |  Office & SharePoint Pro
Windows Dev Pro |  Windows Excavator

Subscribe / Register |  About Us |  Contact Us / Customer Service |  Affiliates / Licensing  |  Media Kit

Copyright © 2008 Penton Media, Inc., All rights reserved.  Terms and Use | Privacy Statement | Reprints and Licensing