What is my mistake ?
using (TaskService ts = new TaskService())
{
string Task_Settings = System.IO.File.ReadAllText(@"D:\DailyTrigger.xml");
TaskFolder tf = ts.RootFolder;
tf.RegisterTask(@"XMLTask", Task_Settings);
}
My xml file works successfully with method NewTaskFromFile.