title: HttpModule with ASP.NET MVC not being called
body: <p>I am trying to implement a session-per-request pattern in an ASP.NET MVC 2 Preview 1 application, and I've implemented an IHttpModule to help me do this:</p>
  
  <pre><code>public class SessionModule : IHttpModule
  {
      public void Init(HttpApplication context)
      {
          context.Response.Write("Init!");
          context.EndRequest += context_EndRequest;
      }
      // ... etc...
  }
  </code></pre>
  
  <p>And I've put this into the web.config:</p>
  
  <pre><code>  &lt;system.web&gt;
      &lt;httpModules&gt;
        &lt;add name="SessionModule" type="MyNamespace.SessionModule" /&gt;
      &lt;/httpModules&gt;
  
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"&gt;
        &lt;remove name="SessionModule" /&gt;
        &lt;add name="SessionModule" type="MyNamespace.SessionModule" /&gt;
      &lt;/modules&gt;
  </code></pre>
  
  <p>However, "Init!" never gets written to the page (I'm using the built-in VS web server, Cassini).  Additionally, I've tried putting breakpoints in the SessionModule but they never break.  What am I missing?</p>