Skip to content

IHostedService backbround tasks not running in IIS #33180

Answered by gfoidl
tkarez asked this question in Q&A
Discussion options

You must be logged in to vote

IIS starts the worker process for the app-pool lazy, i.e. only when there are requests to handle. So please check in Window's task manager if the w3wp.exe is running using the app-pool's identity.

Then also keep in mind that the app-pool may be shutdown if idle or be recycled according the app-pool configuration.

A standard windows-service is maybe a better fit for your application.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rick-Anderson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants