I am using Aspose.Tasks to read mpp files created with MS Project 2007. Most of the files I have been testing with have read fine. However, I have one file that is returning the error in the subject line when I attempt to call Read the file. I have attached the output from TasksReadingException LogText. I am using version 4.2.1 and would appreciate any assistance in isolating the probem. Below is a code snippet I am executing. The error is encountered when calling reader.Read...
Aspose.Tasks.License license = new Aspose.Tasks.License();
license.SetLicense("C:\\Program Files (x86)\\Aspose\\Aspose.Tasks\\Aspose.Tasks for .NET\\bin\\license\\Aspose.Tasks.lic");
FileInfo fi = new FileInfo(MPPFilepath); ProjectReader reader = new ProjectReader(); Project project = null;
Can you please share your MPP file for analysis? If it is difficult for you to share that file, please create and share a new MPP file with just one or two tasks including task with UID 6798 because this task seems to create problem and need to be investigated.
I am only authorized to share a subset of the data. I have isolated the task UID along with its hierarchy. I attempted to read this file and receive the same ReadTasksException error. I have attached the file zipped. THANKS!
Thanks for the sample. This issue has been logged into our issue tracking system as TASKS-33182. We will keep you updated on this issue in this thread. Sorry for the inconvenience.
Please feel free to contact us in case you have further comments or questions.
OutlineCode2 named 'AUW' was assigned to task 6798 and removed afterwards but MS Project left some info about this code in the MPP file. Aspose.Tasks.TaskReader tried to read missing data and threw this exception. The issue is fixed now and this will not happen again.
Please feel free to contact us in case you have further comments or questions.