Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Running an App in the background

Reply
Thread Tools

Running an App in the background

 
 
Toby
Guest
Posts: n/a
 
      12-23-2003
How do i create an ASP.NET application which executes in
the background regardless of who is connected to the web
server? For instance, i want to send an email out to a
list of users based on a timer. Thnx
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      12-23-2003
It all depends on your situation. The most efficient way to do what you're
describing would be to not write an ASP.Net app to do it, but a Service. The
reason? ASP.Net is a technology designed to work within the HTTP environment
of a web server, and has all the overhead necessary to do so. However, the
requirement you've defined has nothing to do with HTTP, Request and
Response, or HTML. It is an app that periodically sends email. The Service
model perfectly fits the description.

If, however, for some reason you don't have the means to write a Service to
do this, it couold be done by instantiating a class in the ASP.Net
Application cache which would carry this out. It could be created in the
Application_Start Event Handler of the Global.asax. The only possible
problem would arise if there was a significant time gap in Requests coming
to the web server, in which case the Application would die, and of course,
the class with it. The class would be re-instantiated with the first
Request, and continue to operate on the timer. However, for the duration of
the time during which there were no requests, there would be no emails sent.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Toby" <> wrote in message
news:003401c3c971$e3aa92c0$...
> How do i create an ASP.NET application which executes in
> the background regardless of who is connected to the web
> server? For instance, i want to send an email out to a
> list of users based on a timer. Thnx



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I launch a new Java app from a running Java app? steve.albin@gmail.com Java 3 01-03-2007 04:59 PM
Background Check - Background search - People search mason66 ASP .Net 0 07-27-2006 10:20 AM
Invoking GUI for app running in background with a keypress Mathias Dahl Python 1 08-16-2005 02:52 AM
Re: Invoking GUI for app running in background with a keypress Mathias Dahl Python 1 08-15-2005 10:03 PM
error when running test app for book Web App 305 and 315 john MCAD 0 01-14-2004 10:38 PM



Advertisments