Search This Blog

Friday, June 8, 2012

HTTP Handlers Part 1 IIS - dotNet

This is the first part of a series of posts documenting HTTP Handlers across different web application servers.
The first example is ASP.Net running on IISv7.

The process as documented in MSDN <a href=''>Walkthrough: Creating a Synchronous HTTP Handler</a> and <a href=''>How to: Configure an HTTP Handler Extension in IIS</a>

  1. Create a new website (e.g.  http://localhost/HttpHandler)
  2. Create a handler class (e.g. public class HelloWorldHandler : IHttpHandler)
  3. Edit the web.config file to register the handler.
  4. Register the required application extension mapping for the new Website by using IIS Manager. (in MSDN this the extension is *.sample)
  5. Test it, e.g. http://localhost/ HttpHandler/test.sample