I am using Task Scheduler to schedule my task in a C # application. I think I got a basic understanding of this library.
But now Iām stuck in the place where I want to create a custom action that will be executed on an established schedule. As a built-in action ie EmailAction (which will send mail on a given schedule), ShowMessageAction (which will show a warning on a set schedule), I want to create an action that will run my C # code, and this code will save some data in my database.
I still tried: I created a CustomAction class that inherits Action, for example:
public class NewAction : Microsoft.Win32.TaskScheduler.Action { public override string Id { get { return base.Id; } set { base.Id = value; } } public NewAction() { } }
And here is my task scheduler code:
.. ...
In the line (indicated by the arrow) I get an exception:
the value is not included in the job scheduler of the expected range
Iām not sure what Iām trying to achieve, even possible or not, if possible, than please direct me in the right direction?
user1740381
source share