ok, you may have seen my, and a few other people's, pain staking effort to track down why, intially PUT and then DELETE routing requests in an existing project were not routing. It turns out that it is related to this area of modules and handlers.
From the tests I have done it looks like GET and POST do not need to have the below attribute set.
runAllManagedModulesForAllRequests="true"
However PUT and DELETE will work too when set, and is the default now for a new MVC 3 project.
So the questions I have, is whether it is better to opt in to have every request managed by all modules, for all resources js, css etc.. and exclude them from first from routing, with an .IgnoreRoute, or be more specific about what requests and modules (or
handlers) are used by specifying them in configuration and how would this be done? or is there a better way?
benaw
Member
211 Points
95 Posts
Which http module manages the routing of web api requests?
Mar 06, 2012 11:38 AM|LINK
thanks
hariyaano
Member
190 Points
54 Posts
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 12:09 PM|LINK
check this link, are you talking about this? Please let me know did it helped you?
http://www.asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api
benaw
Member
211 Points
95 Posts
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 12:13 PM|LINK
I don't see a reference to the asp.net module which manages the requests.
SiggiGG
Member
265 Points
105 Posts
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 12:15 PM|LINK
That would be System.Web.Routing.UrlRoutingModule, unless the Web API guys are hooking into the routing engine some other way.
benaw
Member
211 Points
95 Posts
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 12:24 PM|LINK
It would be helpful to know for sure.
marcind
Contributor
3344 Points
609 Posts
Microsoft
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 03:20 PM|LINK
ASP.NET Team
@marcind
Blog
benaw
Member
211 Points
95 Posts
Re: Which http module manages the routing of web api requests?
Mar 06, 2012 04:06 PM|LINK
ok, you may have seen my, and a few other people's, pain staking effort to track down why, intially PUT and then DELETE routing requests in an existing project were not routing. It turns out that it is related to this area of modules and handlers.
From the tests I have done it looks like GET and POST do not need to have the below attribute set.
However PUT and DELETE will work too when set, and is the default now for a new MVC 3 project.
So the questions I have, is whether it is better to opt in to have every request managed by all modules, for all resources js, css etc.. and exclude them from first from routing, with an .IgnoreRoute, or be more specific about what requests and modules (or handlers) are used by specifying them in configuration and how would this be done? or is there a better way?