<%@ WebHandler Language="C#" Class="MyCustomHandler" %> using System.Web; public class MyCustomHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("Hello from custom code running natively in IIS!"); } public bool IsReusable { get { return false; } } }