Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run ASP.net c# Web Application Automatically

I have a ASP.net web application that checks the status of my servers, it then wraps all this information up and puts it in a email. My Question how do I run this automatically say every day at like 2:00am, or like every 12 Hours?

Thanks

like image 756
ios85 Avatar asked Jun 03 '26 20:06

ios85


2 Answers

The best solution is to create a simple MS Windows Service which will do this job.

like image 179
Friend Avatar answered Jun 06 '26 10:06

Friend


You'd better implement this as a separate process from your ASP.NET application. Phil Haack has summarized the reasons in this blog post. A Windows service for example or even a console application using the windows scheduler could work just fine for this task.

like image 33
Darin Dimitrov Avatar answered Jun 06 '26 08:06

Darin Dimitrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!