I have in my ASP.NET static variable that flushes itself to DB every X insertions. Problem is, if I publish the application , the IIS process is killed with all my static ma
Global.asax
void Application_End(object sender, EventArgs e) { // SHUTDOWN CODE HERE }