A
A
Andrey Ishchenko2014-02-28 13:42:38
ASP.NET
Andrey Ishchenko, 2014-02-28 13:42:38

Repetitive IIS process for ASP.NET MVC?

I have a site on ASP.NET MVC (C#) and I use MSSQL database. Deployed so far on IIS 7.
How to make an ever-living (or launched after certain periods of time) program or process?
She is required to perform some actions with the database and use C # tools (that is, not a procedure in the sql server process).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Pavlov, 2014-02-28
@sepo

It is not worth creating "ever-living" processes on the web. Therefore, there are 2 approaches to solve such problems:

  1. Not very good ( answer why ) is to use Windows Service and use System.Timers.Timer or System.Threading.Timer in it . Don't use Thread.Sleep()!
  2. Better - console C# application with scheduled launch in Task Scheduler

A
Alexander, 2014-02-28
@Papagatto

Here is another Quartz.NET

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question