Chủ Nhật, 13 tháng 10, 2019

Prevent ASP.Net api sleeping!

What you need to set in IIS:
  • In Application Pool for your app, set startMode to AlwaysRunning
  • In Application Pool for your app, set idleTimeout to 0
  • In you app, set preloadEnabled to True
This of course can also be set in applicationHost.config.
You can find your applicationHost.config file in C:\Windows\System32\inetsrv\config\ directory. Then you need to edit:

0 blogger:

Đăng nhận xét