tags:

views:

13

answers:

1

I am developing an mvc application, I need to save some preconfiguration settings into DB. so where i can put my custom code to do that. When ever the IIS is resetted my code should need to work.

+1  A: 

If you want to execute some code every time the application pool starts (or is recycled), like when an IIS reset is done, then you can execute it on the ApplicationStart event.

Add your code to the Application_Start event handler in Global.asax.cs

PHeiberg