473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

do something every day...

How can we manage in ASP.NET (using a hosted website - so there is nothing I
can do in the server) do perform a task every day at 11pm ?

in VB.NET we have the timer and if the application is running we can every 5
minutes see if the clock is right then execute the function, but how about
in ASP.NET, since we deveop for the same framework, shouldn't we had the
same thing?

I need to send the daily sales reports to email of the work list ... any
idea how to perform such task under ASP.NET and without "touch" the server
side?

Thank you.

--

Bruno Alexandre
(a Portuguese in Denmark)

May 7 '06 #1
6 1679
That's really not possible.

You could start a thread in global.asax, that would poll the time to
wait for the right moment, but that would require the application to
actually be started.

An ASP.NET application is only started if someone has made a request to
it, and the server might shut the appliction down if nonone has made a
request for a while. So there is no way that you can be sure that the
application is running at any given moment.

Bruno Alexandre wrote:
How can we manage in ASP.NET (using a hosted website - so there is nothing I
can do in the server) do perform a task every day at 11pm ?

in VB.NET we have the timer and if the application is running we can every 5
minutes see if the clock is right then execute the function, but how about
in ASP.NET, since we deveop for the same framework, shouldn't we had the
same thing?

I need to send the daily sales reports to email of the work list ... any
idea how to perform such task under ASP.NET and without "touch" the server
side?

Thank you.

May 8 '06 #2
dam..!

with all this nice .NET framework 2.0, Microsoft could had thing in a way to
do thins under ASP.NET...

:-(

--

Bruno Alexandre
(a Portuguese in Denmark)

"Göran Andersson" <gu***@guffa.com> escreveu na mensagem
news:OW**************@TK2MSFTNGP02.phx.gbl...
That's really not possible.

You could start a thread in global.asax, that would poll the time to wait
for the right moment, but that would require the application to actually
be started.

An ASP.NET application is only started if someone has made a request to
it, and the server might shut the appliction down if nonone has made a
request for a while. So there is no way that you can be sure that the
application is running at any given moment.

Bruno Alexandre wrote:
How can we manage in ASP.NET (using a hosted website - so there is
nothing I can do in the server) do perform a task every day at 11pm ?

in VB.NET we have the timer and if the application is running we can
every 5 minutes see if the clock is right then execute the function, but
how about in ASP.NET, since we deveop for the same framework, shouldn't
we had the same thing?

I need to send the daily sales reports to email of the work list ... any
idea how to perform such task under ASP.NET and without "touch" the
server side?

Thank you.

May 8 '06 #3
It's not the framework that sets the limitation. You are just trying to
do something that IIS is not intended for.

Bruno Alexandre wrote:
dam..!

with all this nice .NET framework 2.0, Microsoft could had thing in a way to
do thins under ASP.NET...

:-(

May 8 '06 #4
"Bruno Alexandre" <br*******@filtrarte.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
with all this nice .NET framework 2.0, Microsoft could had thing in a way
to do thins under ASP.NET...


As Goran said, this is nothing to do with the Framework per se...

What I would do to get round this would be to create a webservice on the
site where I need the timer functionality, and then set up a call to this
webservice from my home network.

Luckily, I use www.hostinguk.net who offer full SQL Server integration with
remote management, so I never need to worry about this sort of thing...
May 8 '06 #5
I have SQL Server 2000 in my hosting package (I'm using www.brinkster.com)

without give me code examples (only if you want) what's the idea using
WebServices + ASP.NET + SQL Server to performe this task? can you inlight me
please...

the only thing tha occurs to my mind is having a table in sql with the DATE
AND TIME that the function performed and every entry of an user I check that
date, if the date is for the current day and the time is bigger than the
date in DB I performe the function and UPDATE the BD record to the next day.

but with this ideia I never get my stuff at the right time, I can get at 8pm
or 10.30pm, I'm depending on the users access to the website.

other thing is to have a small Window Forms running in a server company and
using the Timer in vb.net to perform the task every day in that hour, that
is for me, the simple thing... but I was undering if I could do it without
using window forms.
--

Bruno Alexandre
(a Portuguese in Denmark)

"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> escreveu na mensagem
news:O8****************@TK2MSFTNGP03.phx.gbl...
"Bruno Alexandre" <br*******@filtrarte.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
with all this nice .NET framework 2.0, Microsoft could had thing in a way
to do thins under ASP.NET...


As Goran said, this is nothing to do with the Framework per se...

What I would do to get round this would be to create a webservice on the
site where I need the timer functionality, and then set up a call to this
webservice from my home network.

Luckily, I use www.hostinguk.net who offer full SQL Server integration
with remote management, so I never need to worry about this sort of
thing...

May 8 '06 #6
"Bruno Alexandre" <br*******@filtrarte.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
I have SQL Server 2000 in my hosting package (I'm using www.brinkster.com)

without give me code examples (only if you want) what's the idea using
WebServices + ASP.NET + SQL Server to performe this task? can you inlight
me please...
1) Take the code which you would have liked to have put into a Timer, and
put it into a Webservice.

2) Create a WinForms app on your local network with a Timer which connects
to the Webservice as often as you want.
but with this ideia I never get my stuff at the right time, I can get at
8pm or 10.30pm, I'm depending on the users access to the website.
I'm afraid I don't understand what this means...
other thing is to have a small Window Forms running in a server company
and using the Timer in vb.net to perform the task every day in that hour,
that is for me, the simple thing... but I was undering if I could do it
without using window forms.


See above.
May 8 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Doug | last post by:
I have Windows XP professional. Is there ANYTHING reliable on Windows that is like cron on UNIX that will allow you run something at regular intervals, for example, like every 10 minutes? I...
44
by: seberino | last post by:
Tuples are defined with regards to parentheses ()'s as everyone knows. This causes confusion for 1 item tuples since (5) can be interpreted as a tuple OR as the number 5 in a mathematical...
6
by: Infiniti | last post by:
Lets say I have an xml file as such <page> <chapter> <paragraph/> <paragraph/> <paragraph/> <paragraph/> <paragraph/> </chapter>
16
by: Bob Rock | last post by:
Hello, when serializing an array of elements of a class Classname using XmlSerializer.Serialize() I get an XML like the following: <?xml version="1.0"> <ArrayOfClassname> ....... ..........
13
by: (Pete Cresswell) | last post by:
I *know* I've been here before some years back, but can't for the life of me recall the details. My application is growing from about five megs to over a hundred megs in the course of a 6-8 hour...
3
by: Mr. California | last post by:
I'm still a little new to Access, and I'm sure I'm missing some key piece of information, but I can boil it all down to this: I have an Employee table. Two of the fields are Empl_First...
2
by: Just Me | last post by:
Need to write a program that wakes up every 15 minutes and does something. I guess I could just create a Windows application and schedule it to run every 15 minutes. Or I could have a program...
1
by: Dominick Baier | last post by:
Hi, you are right - Windows needs the password in plaintext to impersonate a user (having to call LogonUser, which requires a password). Thinking about it - it is the only way Windows can do it. ...
61
by: vadam17 | last post by:
Thanks for your answers. I already know programming in Java and I am starting studying the perl. I would like to learn C or C++ but I need someone to tell me the + and - of each one. I have...
0
by: Hendrik van Rooyen | last post by:
Lawrence D'Oliveiro wrote: The above is an endless loop, doing something every five seconds, and something else in the in between times. I don't think you are dense - its a good point,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.