title: Why can't I get the MvcHttpHandler to handle my .mvc requests?
body: <p>I have a project using Asp.Net 3.5 and MVC 1.</p>
  
  <p>Everything runs perfectly on my local IIS, but not after I deployed it to the hosted server.</p>
  
  <p>The web server is IIS7 with integrated pipeline activated (according to the hosting company).</p>
  
  <p>When I go to the root of the web site, www.site.com, the default.aspx makes a redirect to a controller like so:</p>
  
  <p>public void Page_Load(object sender, System.EventArgs e)<br>
  {<br>
  string originalPath = Request.Path;<br>
  HttpContext.Current.RewritePath(Request.ApplicationPath + "Controller.mvc/Action", false);<br>
  IHttpHandler httpHandler = new MvcHttpHandler();<br>
  httpHandler.ProcessRequest(HttpContext.Current);<br>
  HttpContext.Current.RewritePath(originalPath, false);<br>
  }</p>
  
  <p>This works and the correct view is shown. However, when I type the same address in the browser, www.site.com/Controller.mvc/Action I get a 404.0 error. So it seems the MvccHttpHandler is not invoked correctly(?).</p>
  
  <p>The web.config is set up with runAllManagedModulesForAllRequests="true", and a MvcHttpHandler is configured to handle .mvc extensions.</p>
  
  <p>What am I doing wrong, any ideas?</p>