title: Can MVC work with cshtml ending routes?
body: <p>I want to route <em>.cshtml</em> ending urls to particular controller and action.</p>
  
  <p>MVC pipeline blocks such urls and returns 404: </p>
  
  <blockquote>
    <p>The type of page you have requested is not served because it has been
    explicitly forbidden.</p>
  </blockquote>
  
  <p>However if <code>RouteExistingFiles</code> is set to <code>true</code> routing starts working but then all static files are routed and since I do not process these requests 404 is returned for images, css and js files. (Actually I don't want all requests for static content go through MVC pipeline.)</p>
  
  <p>Setting <code>&lt;add key="webpages:Enabled" value="true" /&gt;</code> changes the error to </p>
  
  <blockquote>
    <p>Type 'ASP._Page_Views_cshtml' does not inherit from
    'System.Web.WebPages.WebPage'.</p>
  </blockquote>
  
  <p>and routing still does not work.</p>