Unable to map an HttpHandler to a “path/*” wildcard mapping

前端 未结 3 492
花落未央
花落未央 2020-12-09 03:10

So I\'ve been trying to map an http module to a sub-path of an MVC3 site. It should be pretty simple as I understand it, but it has not been working. The module is setup l

3条回答
  •  青春惊慌失措
    2020-12-09 03:13

    Seems the UrlRoutingModule-4.0 is more trouble than it is worth. Instead I've just told MVC3 to ignore the routes. Not a perfect solution but until I have something that works better I'll have to stick with this in RegisterRoutes:

    routes.IgnoreRoute("api/{*route}");
    

提交回复
热议问题