I solve it In XP, when GetTask() if the task not exist generate error, therefore with tryCath I create the task and continue jejeje
try
{
Task t = ts.GetTast(name);
if(t !=null)
NewTask();
}
catch
{
//genare error because is XP and the task not exists
NewTask();//bla bla bla
}