Solved

How to run .aspx page every hour.

Posted on 2013-11-05
4
336 Views
Last Modified: 2013-11-26
Hi experts,

I am writing an application that needs to read an excel file once an hour.  The excel file is created by another piece of software and is written to a folder.  My app has rights to this folder.

My app would read and process the file.  I can do this if I initiate the action by opening the .aspx page but I need it to run every hour regardless if the page is hit or not.  I am reading about windows services.  I have no idea how to do this.

Is this the answer, create a windows service? If so could someone help me with how to do this, even where to do it? Is there another way?

Thanks for any help

Vince
0
Comment
Question by:vstack
[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
  • 3
4 Comments
 
LVL 20

Accepted Solution

by:
Daniel Van Der Werken earned 500 total points
ID: 39625672
I think you want a file watcher service which should theoretically check to see if the file is modified and then run your application.

http://www.codeproject.com/Articles/18521/How-to-implement-a-simple-filewatcher-Windows-serv

You could also create a simple service that works the same way but on a timed basis. There are literally tons of examples out there:

http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx
0
 

Author Comment

by:vstack
ID: 39626454
Thank you. I will take a look at this. I am in the Middle East time zone.
0
 

Author Comment

by:vstack
ID: 39678776
Thanks, the  code project link: http://www.codeproject.com/Articles/18521/How-to-implement-a-simple-filewatcher-Windows-serv

helped me find a solution.
0
 

Author Closing Comment

by:vstack
ID: 39678777
Thanks
0

Featured Post

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Query in AngularJS 8 83
c#, datatable, aspx 4 52
SBS 2008 active sync issue 2 51
Run software updates from the website 6 50
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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