The first example is ASP.Net running on IISv7.
The process as documented in MSDN <a href='http://msdn.microsoft.com/en-us/library/ms228090(v=vs.90).aspx'>Walkthrough: Creating a Synchronous HTTP Handler</a> and <a href='http://msdn.microsoft.com/en-us/library/bb515343(v=vs.90).aspx'>How to: Configure an HTTP Handler Extension in IIS</a>
- Create a new website (e.g. http://localhost/HttpHandler)
- Create a handler class (e.g. public class HelloWorldHandler : IHttpHandler)
- Edit the web.config file to register the handler.
- Register the required application extension mapping for the new Website by using IIS Manager. (in MSDN this the extension is *.sample)
- Test it, e.g. http://localhost/ HttpHandler/test.sample