Solved

asp.net web services

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

15 Experts available now in Live!

Get 1:1 Help Now