Where to run initialization code in Asp.net MVC
- by Nosh
I need to run some code that will fetch some configuration values from the web.config during first run of an asp.net mvc application. These values will not change frequently but that is not my main concern.
One way that I can think of is calling the method in Application_Start() method in the global.asax.cs file, but I am hoping someone has a better idea.