?
Solved

asp.net web services

Posted on 2014-10-09
3
Medium Priority
?
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
John Solomon earned 2000 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
 
LVL 1

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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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