title: HttpHandler 101 FAIL
body: <p>When I add an HTTP handler:</p>
  
  <pre><code>&lt;add verb="*" path="*test.aspx" type="Handler"/&gt;
  </code></pre>
  
  <p>With the class:</p>
  
  <pre><code>using System;
  using System.Web;
  
  public class Handler : IHttpHandler
  {
  
      public void ProcessRequest(HttpContext context)
      {
          context.Response.ContentType = "text/plain";
          context.Response.Write("Hello World");
      }
  
      public bool IsReusable
      {
          get { return false; }
      }
  
  }
  </code></pre>
  
  <p>My ASP.NET application dies with the error "Could not load type 'Handler'." when I try to access <a href="http://localhost:port/mysite/this-is-a-test.aspx" rel="nofollow noreferrer">http://localhost:port/mysite/this-is-a-test.aspx</a>.</p>
  
  <p>I thought maybe it was a namespace issue, so I tried what follows, but got the same "Could not load type 'Test.Handler'." error.</p>
  
  <pre><code>&lt;add verb="*" path="*test.aspx" type="Test.Handler, Test"/&gt;
  </code></pre>
  
  <p>With the class:</p>
  
  <pre><code>using System;
  using System.Web;
  
  namespace Test
  {
  
      public class Handler : IHttpHandler
      {
  
          public void ProcessRequest(HttpContext context)
          {
              context.Response.ContentType = "text/plain";
              context.Response.Write("Hello World");
          }
  
          public bool IsReusable
          {
              get { return false; }
          }
  
      }
  
  }
  </code></pre>
  
  <p>I knew I was getting rusty with ASP.NET, but I'm without a clue on this one.</p>