Hi,
I am trying to set task to be scheduled only once. Thus, I am using TimeTrigger , but I get the exception at
Error Code : -2147216615
Error msg : (10,8):StartBoundary
Stack Trace :
I am trying to set task to be scheduled only once. Thus, I am using TimeTrigger , but I get the exception at
ts.RootFolder.RegisterTaskDefinition(Curr_Task.Name, Curr_Task.Definition, TaskCreation.CreateOrUpdate, str_username, str_password, TaskLogonType.Password);
Exception Details :-Error Code : -2147216615
Error msg : (10,8):StartBoundary
Stack Trace :
at Microsoft.Win32.TaskScheduler.V2Interop.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object password, TaskLogonType LogonType, Object sddl)
at Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String path, TaskDefinition definition, TaskCreation createType, String userId, String password, TaskLogonType logonType, String sddl) in D:\Jeet\Task Schedular API v2.5.22\Source Code\TaskService\TaskFolder.cs:line 424
at SQScheduler.frmScheduleScenario.SetTriggerinTaskScheduler_New()
Please help why I get this exception and what can be done to stop it from coming...