How to do a routine, function in vb.net that runs at a set schedule?

-1

Hello, I need help with vb.net in an asp.net application, I need to create a function that runs after 24 hours to close operations, but I have no idea how to create a function that starts alone in a period of time.

    
asked by anonymous 06.08.2018 / 14:38

1 answer

-1

There are several ways to solve this problem, but I suggest a simple and easy to implement.

Create an application of type Console Application in your project. It is advisable that any executable is just the invoker of its logic that should reside in a namespace itself. This Console App will generate a Executable that can be manually triggered.

On the server where it is installed, create a scheduled task in the Task Scheduler (Win + R -> taskschd.msc), and configure it to run on the days and times you want, pointing to your executable.

Use LOG files to describe the important sequences of operations, and especially to identify possible problems in your routine.

    
06.08.2018 / 14:51