Why is MvcHttpHandler mapped to * .mvc?

By default, the web.config file for an MVC project has the following element:

<handlers>
  <remove name="MvcHttpHandler"/>
  <add name="MvcHttpHandler" preCondition="integratedMode" 
       verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler"/>
</handlers>

My problem is that my site returns 404.14, after I knocked out all the usual suspects, I changed the path (forming the snippet above) in web.config to be "*" and voilà! MVC Explorer starts.

So my question is, how does * .mvc even assume to work? I mean that my URLs http://mysite.com/home/index (or even just http://mysite.com/ ) do not have * .mvc in them.

Did I miss something?

+3
source share
1 answer
+2

Source: https://habr.com/ru/post/1729118/


All Articles