Solved

asp.net web services

Posted on 2014-10-09
3
171 Views
Last Modified: 2014-10-24
I have asp.net web services written in c# and it basically just query in the database and extract some information and email to the end user. the email came from the database.

My question is if I want this web service to run daily at 1:00 am (PST) except the weekend. How can I do that?

Thanks
0
Comment
Question by:ITsolutionWizard
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
John Solomon earned 500 total points
ID: 40372077
hmm this is how I would approach the problem..

You can probably checkQuartz.NET Quartz.Net Job Scheduler which is, from its name, a scheduler.

Or I would run an application as a windows Service with a timer functionality, put it in your Global.asax at application startup.

 How about a console application as a windows scheduled task. Then that application would call the webservice?..

And probably you may want to check out Azure Scheduler to invoke your webservice on a regular basis..

just some ideas I'm throwing out there :)
0
 

Author Comment

by:ITsolutionWizard
ID: 40372090
I may use window service but since i am very new to that. I am not sure I can handle it. Thanks
0
 
LVL 1

Expert Comment

by:John Solomon
ID: 40372099
Cool!

to check the days are weekend, really the obvious approach would be declare constant string of Saturday and Sunday and if that compares to System.Date getDay() {not the right method but i'm sure there should be some methods to get the day} as saturday and sunday then dont perform the task.

Good luck with your project :)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question