0

I have an ASP.Net page that runs every 30 seconds. I takes data from a text file and updates a database in SQL Server 2012. I need this to run all day every day instead of me manually starting up IE and running this page. Is there a way I can easily make this into an exe or service or some other process that I can run without worry that it won't stop by mistake?

Best Regards, Andy

2
  • 2
    ..it won't stop by mistake Mistake by whom exactly? By your code? By your OS? By a person? Task Schedule is good for such a process I think. Commented Jan 14, 2016 at 14:16
  • Perhaps you can give windows services a try. Commented Jan 14, 2016 at 14:24

2 Answers 2

1

You can try a windows form application (console) and use the windows Task scheduler to configure the executable to run per your schedule.

Sign up to request clarification or add additional context in comments.

Comments

1

You could create a Windows Service to run every 30 seconds as a background process.

Take a look at this. They are actually a lot easier to get up and running than you might think.

Develop and Install a Windows Service in C#

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.