Whenever a request is received by MVC, it is the job of the routing engine to match the request URL with the registered routes. After finding the matched route, the MvcRouteHandler is called to provide a suitable handler for the request. It is the MvcHandler which is tasked with the generation of response for the ongoing request being processed. In its ProcessRequestInit() method, a call is made to to get the controller factory, which returns an instance of the DefaultControllerFactory class. Using this instance of the DefaultControllerFactory class, the CreateController() method is invoked to return a controller. You can know more about MvcRouteHandler and MvcHandler in my previous post.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials, ASP.Net,DefaultControllerFactory,MVC