asp.net - Run Application_Start immediately when application pool/Application restarts in IIS -




what want application_start in global.asax (or other piece of code) runs automatically whenever application pool/application restarts in iis. application_start gets triggered on first request don't want wait first request, want whenever web api deployed , started.

so, there way via code (not @ iis level) can achieve above?

i'm not absolutely sure can try set "start mode = running" application pool.

edit 1: should enforce iis directly load/reload application pool , triggering application_start of global.asax


edit 2

just make clear, meant. enter image description here

  1. go application pools
  2. right click application pool
  3. go advanced settings
  4. change ondemand alwaysrunning

yes not code based. of know have configure application pool achieve want.

maybe want check (contains samples code based app pool configuration): application pool defaults





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -