Solved

asp.net web services

Posted on 2014-10-09
3
165 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now