title: Problem mapping HttpHandler --> HTTP Error 404 Not Found
body: <p>I am having problems trying to map an HttpHandler in the web.config.</p>
  <p>This is the relevant config bit:</p>
  <pre><code>&lt;httpHandlers&gt;
    &lt;add verb=&quot;*&quot; path=&quot;*.hndlr&quot; type=&quot;MyAssembly.MyHandler, MyAssembly&quot; validate=&quot;false&quot; /&gt;
  &lt;/httpHandlers&gt;
  </code></pre>
  <p>When I navigate to <code>http://localhost/myApp/whatever.hndlr</code> I am getting a server error 404 (not found).</p>
  <p>It's the 1st time I am hooking up an HttpHandler so I might be missing something - any help appreciated!</p>
  <p><strong>UPDATE</strong>:</p>
  <p>I managed to get it working using both answers so far - who's able to explain why it works gets the answer marked!</p>
  <p>This is my config (won't work if you don't have both - I am running <strong>IIS7 in classic mode</strong>)</p>
  <p>System.web:</p>
  <pre><code>&lt;httpHandlers&gt;
      &lt;add verb=&quot;*&quot; path=&quot;*MyHandler.hndlr&quot; type=&quot;MyAssembly.MyAssemblyHandler, MyAssembly&quot; validate=&quot;false&quot;/&gt;
  &lt;/httpHandlers&gt;
  </code></pre>
  <p>System.webserver:</p>
  <pre><code>&lt;handlers&gt;
      &lt;add name=&quot;MyHandler&quot; verb=&quot;*&quot; path=&quot;*MyHandler.hndlr&quot; type=&quot;MyAssembly.MyAssemblyHandler, MyAssembly&quot; validate=&quot;false&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;Script&quot;/&gt;
  &lt;/handlers&gt;
  </code></pre>