title: How do I use my HTTP handlers for selected paths and MVC handler for the rest?
body: <p>I have an MVC2 application. I also have a set of ready HTTP handlers that derive from <code>System.Web.IHttpHandler</code>. How do I use them together?</p>
  
  <p>I tried the following in web.config:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;!--other stuff--&gt;
          &lt;handlers&gt;
              &lt;add name="MyCustomHandler" verb="GET" path="MySpecificPath*" type="CustomHandling.CustomHttpHandlerBase, CustomHAndlingAssembly"/&gt;
              &lt;add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/&gt;
          &lt;/handlers&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>yet control never reaches my handler and MVC handler is used for all requests.</p>
  
  <p>How do I use my handler for one specific path and MVC handler for all other paths?</p>