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
Solved

How to run .aspx page every hour.

Posted on 2013-11-05
4
334 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
  • 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

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

792 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