473,385 Members | 1,409 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,385 software developers and data experts.

start at specifed time

Hi,

Is it possible to start some code at specifed time(like scheduled task)?
How to achive that?
I can't use windows service or windows shedule task. I don't have necessary
rights.
I would appreciate if someone has an example or link, anything to point me
in the right direction.

Thank you for help.

Regards,
Darko Bazulj
Nov 19 '05 #1
3 1168
Darko Bazulj <bd****@newsgroup.nospam> wrote in
news:em*****************************@40tude.net:
I can't use windows service or windows shedule task. I don't have
necessary rights.
ASP.NET applications are not designed to run as a service.

You can probably find a hack to do so - but it's not recommended -
especially since there are threading limits to IIS.

I would appreciate if someone has an example or link, anything to
point me in the right direction.

Nov 19 '05 #2
Hi Darko ,

As for this post, I've seen one of your former thread regarding on the same
question. Some community members and I have posted our replies there. Have
you had a chance to have a look there? Anyway, I've pasted my reply in the
following, please let me know if you have any new ideas on this:

=====================================
Hi Darko,

I think Gabriel's suggestion on using a Timer is good. Also, the article
Gabriel provided seems discussing on desktop application scenario, as for
asp.net web application, that's a bit different from desktop application
when using Timer object. ASP.NET application is request/response based
which dosn't as persistent connection between client and server. So after a
certain page's execution lifecycle (render response to client), the page
object at serverside will be disposed. So if we will use Timer at
serverside, don't create it as local variable in page
class (as member or local variable in function). We can use the following
means to hold the reference to the Timer:
1. Use a certain class's static member which will be global to all the
classes in your application( if not using webfarm ).

2. Use the asp.net's Application Cache or ApplicationState to store the
reference of the Timer you created

In addition to using Timer, we can also create a background thread in
asp.net which constantly check some schedule tasks. The thread's reference
can also be held through the means I mentioned above.

If there are anything unclear, please feel free to post here. Hope helps.
=====================================

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3
Hi Darko,

Any futher questions or ideas on this post? If there are anything else we
can help, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4

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

Similar topics

2
by: engsol | last post by:
I'm using Python to parse a bunch of s/w test files and make csv files for later report generation by MS ACCESS....(my boss loves the quick turn-around compared to C). Each log file may contain one...
1
by: Raed Sawalha | last post by:
I have an XML contains a time like 02:22:14 PM where it is read by windows service i need to make a thread to start on a time specifed in the XML, how can I achieve this?
2
by: Darko Bazulj | last post by:
Hi, Is it possible to start some code at specifed time(like scheduled task)? How to achive that? I can't use windows service or windows shedule task. I don't have necessary rights. I would...
6
by: Arnie | last post by:
We're using the ServiceController class provided by the .NET Framework, programming in C#. We are using the Start() method to start a service from another service. This works fine most of the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.