title: how to register a httphandler to handle all extensions in IIS?
body: <p>I'm having trouble getting IIS 7 to load this handler I've written. I'm keeping things really simple to start with. I have a Handler.cs file with the following code in it: </p>
  
  <pre><code>public class Handler :IHttpHandler
  {
      public bool IsReusable
      {
          get { return false; }
      }
  
      public void ProcessRequest(HttpContext context)
      {
          context.Response.Write("asdfasdf"); 
      }
  }
  </code></pre>
  
  <p>I have put this file in the root directory.</p>
  
  <p>I want to execute this code whenever the root directory receives a request, so I have built the handler file like this:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;add name="Handler" verb="*" 
          path="*.*" 
          type="Handler" 
          resourceType="Unspecified" /&gt;
      &lt;/handlers&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>IIS gives me the following error when I attempt to go  to localhost/runt (my website root directory )</p>
  
  <pre><code>Server Error in '/' Application.
  
  Could not load type 'Handler'.
  
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
  Exception Details: System.Web.HttpException: Could not load type 'Handler'.
  
  Source Error: 
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  
  Stack Trace: 
  
  
  [HttpException (0x80004005): Could not load type 'Handler'.]
     System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +11247344
     System.Web.Configuration.HandlerFactoryCache.GetHandlerType(String type) +23
     System.Web.Configuration.HandlerFactoryCache..ctor(String type) +25
     System.Web.HttpApplication.GetFactory(String type) +91
     System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +338
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +263
  
  Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5459
  </code></pre>