Solved

asp.net web services

Posted on 2014-10-09
3
181 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 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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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