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
- go application pools
- right click application pool
- go advanced settings
- 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
Post a Comment