how to keep alive my Blazor Server side app IIS 8.5

Viewed 1191

I need to keep my blazor server side app alive all time.

I tried to set my iis 8.5 start mode setting to alwaysrunning and idle to 0 but still shutting down the app and caught stopping signal... after between 23h to 29h...

enter image description here

what i have to do to keep it alive, which setting i missed? Do i have to add code on web.config?

1 Answers

In IIS the application pool recycles every 29 hours by default. This is a configurable setting. Please change the Regular Time Interval (minutes) from 1740 to 0. A setting of 0 means the application pool will never recycle. (see picture for the default setting)

IIS Application Pool Configuration

Changing this setting is helpful for a Blazor Server app, because otherwise clients will get disconnected from the server when the application pool recycles. This is a quirk of SignalR protocol which is used by Blazor Server.

Related