简体   繁体   中英

Start application anyway IIS

I'm tried to automatic start IIS WebApplication .

I want to be able to call to Application_Start inside my global.asax but its happend only after the first request to my web application.
How can i do it when the IIS server is started??

Thanks.

You can implement System.Web.Hosting.IProcessHostPreloadClient interface and load your datas in the Preload method. You then need to configure a serviceAutoStartProviders in IIS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM