I've create a task using this library, that worked.
Now when I use the TaskEdit dialog in the following way:
```
Using D As New TaskEditDialog()
Using Tsk As Task = ts.GetTask("\MyTasks\Task1")
D.Editable = True
D.RegisterTaskOnAccept = True
D.Initialize(Tsk)
End Using
End Using
```
I get a COMException with __error code -2147216615 __and a message of __(45,8):Period:__. I have noticed that if I change the __Configure For__ dropdown to Windows 7, Windows Server 2008 R2 it saves.
What am I doing wrong or does this library not support Windows 8.1 as yet?
The output from D.Task.xml is:
```
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Source>MyApp</Source>
<Author>Me</Author>
<Description>Collect Totals</Description>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2013-11-12T18:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>true</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>true</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT1M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\Users\darm\Documents\Visual Studio 2010\Projects\MyApp\Deliverable\Application\Task Runner.exe</Command>
<Arguments>action=1</Arguments>
</Exec>
</Actions>
<Principals>
<Principal id="Author">
<UserId>DG750\darm</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
</Task>
```
Comments: ** Comment from web user: dahall **
Now when I use the TaskEdit dialog in the following way:
```
Using D As New TaskEditDialog()
Using Tsk As Task = ts.GetTask("\MyTasks\Task1")
D.Editable = True
D.RegisterTaskOnAccept = True
D.Initialize(Tsk)
End Using
End Using
```
I get a COMException with __error code -2147216615 __and a message of __(45,8):Period:__. I have noticed that if I change the __Configure For__ dropdown to Windows 7, Windows Server 2008 R2 it saves.
What am I doing wrong or does this library not support Windows 8.1 as yet?
The output from D.Task.xml is:
```
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Source>MyApp</Source>
<Author>Me</Author>
<Description>Collect Totals</Description>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2013-11-12T18:00:00</StartBoundary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInterval>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Settings>
<MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
<DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
<StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
<AllowHardTerminate>true</AllowHardTerminate>
<StartWhenAvailable>true</StartWhenAvailable>
<RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
<IdleSettings>
<Duration>PT10M</Duration>
<WaitTimeout>PT1H</WaitTimeout>
<StopOnIdleEnd>true</StopOnIdleEnd>
<RestartOnIdle>false</RestartOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</AllowStartOnDemand>
<Enabled>true</Enabled>
<Hidden>true</Hidden>
<RunOnlyIfIdle>false</RunOnlyIfIdle>
<WakeToRun>true</WakeToRun>
<ExecutionTimeLimit>PT72H</ExecutionTimeLimit>
<Priority>7</Priority>
<RestartOnFailure>
<Interval>PT1M</Interval>
<Count>3</Count>
</RestartOnFailure>
</Settings>
<Actions Context="Author">
<Exec>
<Command>C:\Users\darm\Documents\Visual Studio 2010\Projects\MyApp\Deliverable\Application\Task Runner.exe</Command>
<Arguments>action=1</Arguments>
</Exec>
</Actions>
<Principals>
<Principal id="Author">
<UserId>DG750\darm</UserId>
<LogonType>InteractiveToken</LogonType>
<RunLevel>LeastPrivilege</RunLevel>
</Principal>
</Principals>
</Task>
```
Comments: ** Comment from web user: dahall **
I just attached a zip file. Please unzip all of it and then run TestTaskService.exe. Choose "Editor test" and change some of the values for the task that pops up, click Ok, and then see if there is an error. Test changing values and even the "Configure for:" dropdown. Let me know what you find. By the way, your error log shows that you have the 2.0.0 binaries and not the 2.0.3.