I know Global.asax file first handel the incoming request in asp.net mvc and web.config file contain the configuration the application. My query is which is first handle request Global.asax or web.config.
-
Web config doesn't handle requests; it's is used during startup and running of the app, to store configuration. If it is corrupt, app wont start, but that doesn't mean it's anything to do with serving a request; just that request is causing app to start and app start is reading configCaius Jard– Caius Jard2019-11-11 08:42:10 +00:00Commented Nov 11, 2019 at 8:42
Add a comment
|
1 Answer
Hi and welcome to Stackoverflow!
You should know more about ASP.NET MVC Life Cycle
The application life cycle refers to the time at which the application process actually begins running IIS until the time it stops. This is marked by the application start and end events in the startup file of your application.
Check this link Lifecycle of an ASP.NET MVC 5 Application. There is a pdf that charts the lifecycle of every ASP.NET MVC 5 application.