By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,625 Members | 1,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,625 IT Pros & Developers. It's quick & easy.

How to run a Background Job ?

P: n/a
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .

Oct 30 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .
Oct 30 '06 #2

P: n/a
Write your application and then use the Task Schedular in Windows to execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .



Oct 30 '06 #3

P: n/a
Just to clarify that in this case you would write either windows or console
application. You can also use your database job scheduling facilities.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Michael D. Ober" <obermd.@.alum.mit.edu.nospamwrote in message
news:on****************@newsread2.news.pas.earthli nk.net...
Write your application and then use the Task Schedular in Windows to
execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
>You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googleg roups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .




Oct 30 '06 #4

P: n/a
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user
interaction
"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .

Oct 30 '06 #5

P: n/a
you are probably best writing a windows service application. these are
specifically designed to run "in the background" without any user interaction
Depends. If that process should run just once a day, a console
application that is started by "Scheduled Tasks" doesn't take up
resources the rest of the day.
If it should run (almost) continously, then you are right.

Hans Kesting
Oct 31 '06 #6

P: n/a
We do the same.
Task scheduler calling a simple app which uses the URLdownloadToFile() win32
api on the web app.
Which invokes a specific batch.
I append the result, which is plain text, to my logfile.
(It calls a generic handler/ashx)

Maybe you'll have luck with window's Wait.exe or similar.
There was an issue the task scheduler could not execute my web app, i tried
explorer but failed, therefore my simple win32 app.

"Michael D. Ober" <obermd.@.alum.mit.edu.nospamschreef in bericht
news:on****************@newsread2.news.pas.earthli nk.net...
Write your application and then use the Task Schedular in Windows to
execute
it every day at the desired time. Given this app, I would choose early
morning hours so the reminder is in their inbox when they arrive at work.

Mike Ober.

"Bryan Phillips" <bp*******@nospam.crowechizek.com.spammenotwrote in
message news:OF****************@TK2MSFTNGP02.phx.gbl...
>You can run a background job by using the ThreadPool class.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com


"vivekian" <vi********@gmail.comwrote in message
news:11**********************@i42g2000cwa.googleg roups.com:
Hi,

Need to run a background job which will run everyday and check if any
of the members in the web application have their membership expiration
date approaching and send them a remainder accordingly. How can this
thread / method be scheduled to run background at sometime during the
day.

Thanks in advance
vivekian .




Nov 1 '06 #7

P: n/a
Vivekian,
You may wanna check this link:
http://www.codeproject.com/aspnet/ASPNETService.asp

Parind.

"Edwin Knoppert" wrote:
We do the same.
Task scheduler calling a simple app which uses the URLdownloadToFile() win32
api on the web app.
Which invokes a specific batch.
I append the result, which is plain text, to my logfile.
(It calls a generic handler/ashx)

Maybe you'll have luck with window's Wait.exe or similar.
There was an issue the task scheduler could not execute my web app, i tried
explorer but failed, therefore my simple win32 app.
Nov 2 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.