Aspose.Tasks.Project Object is being populated with the wrong dates

Hi,


I am reading a .mpp file like this:

Dim projectReader As New Aspose.Tasks.ProjectReader
Dim project As Aspose.Tasks.Project
Dim fileStream As New System.IO.FileStream(filePath, FileMode.Open)

where the filePath is the path to the .mpp

Then using the projectReader object I created I instantiate my project object as so:

project = projectReader.Read(fileStream)

But for some strange reason all of the dates (except for the CreatedDate) have the wrong Year. The Month and the Day are correct but instead of for example 2012 or 2013 all of the dates are populated with the year 2000. The .mpp files’ dates’ year are all between 2010 and 2012. Even all of the Root Tasks children are populated with the wrong year.

I have tried to figure this out, but there is not much I can do since these are not my functions. So, if anyone can give me some assistance with this matter, I would greatly appreciate it.

Thank You

Hi,

This is because of the evaluation limitation. You will see correct year after applying the license. Please follow https://purchase.aspose.com/temporary-license/ to apply for a temporary license and feel free to contact us in case you have further comments or questions.

Best Regards,

Hi, thank you for the swift response but I actually do have a license with Aspose. I am doing this before that piece of code that I posted before:


Dim license As Aspose.Cells.License = New Aspose.Cells.License
license.SetLicense(“Aspose.Total.lic”)

I work for a software company and have used Aspose.Cells very frequently over the past few months so I know that I have an ongoing license.

This is my first time using Aspose.Tasks

Any other suggestions why this might be happening?

The only years that are correct are the CreatedDate and LastSavedDate. All other Date properties (StartDate, FinishDate, etc.) are populated with year 2000

Thanks

Hi,

Looks like you are setting license for Aspose.Cells. Please use the following code to set license for Aspose.Tasks.

Dim tasksLicense As Aspose.Tasks.License = New Aspose.Tasks.License()
tasksLicense.SetLicense(“Aspose.Total.lic”)

Best Regards,

Yes!


That was it, stupid miscue by me.

Thank You Very Much

Hi,


Thank you for the feedback.

It’s good to know that your issue is resolved now. Please feel free to contact us if you have any further queries.