简体   繁体   中英

Run a Windows Service on IIS

I want to run a service, like Windows Service that will run every hour on IIS. I do not want to use the service locally on my machine as it would dependent on the machine being keep on for the service to work. Is there a way to achieve this? I have tried to find a solution but could not find a clear answer.

A windows service and an IIS application are different. It sounds like you want to run a recurring task for your website, for that I would recommend something like hangfire or quartz.net . Both offer persistence options so that they can run even if the application is restarted or recycled.

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