Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to asp.net MVC architecture
i want to know the application flow.
I have already gone through this link
http://msdn.microsoft.com/en-us/library/dd381612.aspx[^]

In this it is given that as user request a page ---
In the Global.asax file, Route objects are added to the RouteTable object.

I want to know the flow from request to iis.

My doubt is When user request a page of Asp.Net MVC How IIS know's that it is request for MVC application and not normal Asp.Net Application.

Please guid me
Posted
Updated 17-Nov-11 23:34pm
v2

following article contains details about the mvc application lifecycle

MVC Application Lifecycle[^]
 
Share this answer
 
Have a look at this article as well

http://blogs.msdn.com/b/tmarq/archive/2010/04/01/asp-net-4-0-enables-routing-of-extensionless-urls-without-impacting-static-requests.aspx[^]

IIS inspects the incoming request and looks up the handler for the type, most items are mapped into aspnet_isapi.dll. IIS -> Virtual Directory -> Configuration -> Mappings

Quote:
URLs are mapped to handlers by IIS when the request is initially received. I'll refer to the ASP.NET handlers as managed handlers, and everything else as unmanaged handlers. A request with a managed handler will enter ASP.NET and be processed by the various managed modules in the pipeline. On IIS 6, a request with an unmanaged handler won't be processed by managed code. On IIS 7, a request with an unmanaged handler, also, won't be processed by managed code, at least not by default.


I'm just going to repeat a lot of what is in the article, have a read through...but it's along the lines of

IIS receives Request -> Determine Mapping for Request -> Pass Request to Managed Code -> Look up route table .. etc etc
 
Share this answer
 
This article might be helpful to look at: Lifecycle of an ASP.NET MVC 5 Application posted by Cephas Lin on February 28, 2014.
 
Share this answer
 
You can check out the latest article posted on the MSDN:

ASP.NET MVC 5 LifeCycle
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900