Quantcast
Viewing all articles
Browse latest Browse all 2206

Edited Issue: Getting COMExcpetion when attempting to register changes in a Windows 8.1 PC [11504]

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>
```

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>