S
Steven Nagy
Hi all,
I have a problem where I am developing a site for a client that needs
to perform a certain analysis against the database every hour, on the
hour. The problem is that the hosting company will only allow a
standard ASP.NET web app to be run on their server; no EXE's can be
run. So I am not sure how I would implement functionality to run the
required service.
You see, its theoretically possible that no one would use the site on a
particular day, but during that day there still needs to be something
running to analyse the database every hour.
I guess the problem is that I am thinking of web apps as being "user
driven". Ie, a page only executes because it has been requested by a
browser. I have ideas that might be too crazy to even attempt. For
example, creating a timer and putting it in some sort of application
state (I assume something like this exists) and the timer tick event
does my processing. I could then write an admin page that could check
the status of the timer, if its started or not, thus being able to turn
my "service" on and off. I could create the timer on application_start
in Global.asa and put the object somewhere I can retrieve later from an
admin login.
Is my idea crazy? Whats the best way to approach this specific problem?
Many thanks,
Steven
I have a problem where I am developing a site for a client that needs
to perform a certain analysis against the database every hour, on the
hour. The problem is that the hosting company will only allow a
standard ASP.NET web app to be run on their server; no EXE's can be
run. So I am not sure how I would implement functionality to run the
required service.
You see, its theoretically possible that no one would use the site on a
particular day, but during that day there still needs to be something
running to analyse the database every hour.
I guess the problem is that I am thinking of web apps as being "user
driven". Ie, a page only executes because it has been requested by a
browser. I have ideas that might be too crazy to even attempt. For
example, creating a timer and putting it in some sort of application
state (I assume something like this exists) and the timer tick event
does my processing. I could then write an admin page that could check
the status of the timer, if its started or not, thus being able to turn
my "service" on and off. I could create the timer on application_start
in Global.asa and put the object somewhere I can retrieve later from an
admin login.
Is my idea crazy? Whats the best way to approach this specific problem?
Many thanks,
Steven