0

I have an mvc application hosted on IIS. This app requires to register some jobs when the app is starting. I implement this logic on the Application_Start event and it's working correctly.

If the IIS restarts, I have to re-register all the jobs. I tried to warm up the app with this solution but the Application_Start is not fired.

Is it possible to trigger this event after the restart? or maybe there are other events that i can handle after the restart?

Digital_Jo4
  • 56
  • 13

2 Answers2

0

Solution found here

Be careful, the application pool must be set to integrated mode NOT classic.

Digital_Jo4
  • 56
  • 13
0

look in to the solution folder for PrecompiledApp.config file. If you remove that file from the published site folder, the events at global.asax.cs would stop firing.

hope this reference will guide you in future: Global.asax not firing for Release build