getting error - Project does not contain original MPP data. Only update of original MPP files is currently supported.
My Sample code is,
1.
Project project = new Project();
// Create a new task
Task task = project.RootTask.Children.Add("Task1");
task.Set(Tsk.Start, new DateTime(2012, 8, 1));
task.Set(Tsk.Finish, new DateTime(2012, 8, 5));
project.Save(@"C:\Ramya\MPP\New\Project1.mpp", SaveFileFormat.MPP);
Actually my requirement is, to create a new mpp file and add data and download mpp file.
Project project = new Project(@"C:\Ramya\MPP\Old\b4ubuild_sample_07.mpp");
//// Create a new task
Task task = project.RootTask.Children.Add("Task1");
task.Set(Tsk.Start, new DateTime(2012, 8, 1));
task.Set(Tsk.Finish, new DateTime(2012, 8, 5));
project.Save(@"C:\Ramya\MPP\New\Project1.mpp", SaveFileFormat.MPP);
The above lines throwing exception - “An exception of type ‘System.NotSupportedException’ occurred in Aspose.Tasks.dll but was not handled in user code Additional information: The operation is not allowed in evaluation mode.”
Please help me, i am using Aspose.Tasks.dll version - 19.7.0.
if i use Aspose.Tasks. dll version - 19.6.1 - not able to read mpp file, but able to read mpp file in version 19.7.0 and unable to save mpp after adding changes