MPX - Start and End Dates all Today's Date

MPX file (can't upload because it contains confidential information)

Only using Name, Start, End, Percent Complete, Is Milestone, and Outline Level.

Opened the generated MPX file in notepad...all entries display the proper dates. Opened in 2003 and all display 10/17/07 for both the start and end date.

When I open in 2003, opens. When I open in 2007, crashes.

Here is the first part of the MPX file from notepad.

MPX,Microsoft Project for Windows,4.0,ANSI
10,$,1,2,",",.
11,2,0,1,8.0,40.0,$10.00/h,$15.00/h,1,0
12,1,0,480,/,:,AM,PM,20,0
30,Project1,,,Standard,,,0,17/10/2007,,$0.00,$0.00,$0.00,0.00h,0.00h,0.00h,0%,0.00d,0.00d,0.00d,0%,,,,,0.00d,0.00d
60,Name,Outline Level,Milestone,Start,Baseline Start,Finish,Baseline Finish,% Complete,Cost
61,1,3,81,50,56,51,57,44,30
70,CLASSIFIED NAME HERE,1,No
70,CLASSIFIED NAME HERE,2,No,01/10/1997,01/10/1997,30/09/2020,30/09/2020

etc. etc.

As for the part about it crashing in 2007 and not in 2003, that is because I had not added the AddDefaultBaseCalendar method. Upon adding it, it opens in 2007, but the problem with the dates is still there. I need that part fixed.

As an update, here is the current top of the MPX file.

MPX,Microsoft Project for Windows,4.0,ANSI
10,$,1,2,",",.
11,2,0,1,8.0,40.0,$10.00/h,$15.00/h,1,0
12,1,0,480,/,:,AM,PM,20,0
20,Standard,0,1,1,1,1,1,0
25,1
25,2,08:00 AM,12:00 PM,01:00 PM,05:00 PM
25,3,08:00 AM,12:00 PM,01:00 PM,05:00 PM
25,4,08:00 AM,12:00 PM,01:00 PM,05:00 PM
25,5,08:00 AM,12:00 PM,01:00 PM,05:00 PM
25,6,08:00 AM,12:00 PM,01:00 PM,05:00 PM
25,7
30,Project1,,,Standard,,,0,17/10/2007,,$0.00,$0.00,$0.00,0.00h,0.00h,0.00h,0%,0.00d,0.00d,0.00d,0%,,,,,0.00d,0.00d
60,Name,Outline Level,Milestone,Start,Baseline Start,Finish,Baseline Finish,% Complete,Cost
61,1,3,81,50,56,51,57,44,30
70,CLASSIFIED NAME HERE,1,No
70,CLASSIFIED NAME HERE,2,No,01/10/1997,01/10/1997,30/09/2020,30/09/2020

Dear ethicalhacker,

Thanks for considering Aspose.Tasks.

Please read this thread regarding date issue.

Like I said, the date is NOT transposed as per the article you pointed me to is talking about. When you open the MPX in notepad, the correct dates are there. The problem is that Project still doesn't have something it's looking for to display the information correctly. Furthermore, the date that that article says it transposes the date to is in the year 2000. The date I see in my project file is in the year 2007. Please escalate this.

Finally, we're talking about Aspose.Tasks here - not Aspose.Slides...just like I said.

As I continue to diagnose this problem, it appears that a good portion of the problem is coming from assigning the start and end dates through the .Start and .Finish properties instead of using the ActualStart and ActualFinish methods; however, there is still a problem…project pops and error about the a specific task number starting before the project start date - which is weird because that task starts after 98% of the rest of them…remove that task via notepad, and it picks on a different task. Weird

To fix the final problem, I had to set the StartDate to the earliest possible setting - Jan 1, 1984. This ticket can now be considered closed. For future reference, if someone is using a temporary license file, no dates are changed. Everything is 100% functional. I would recommend revising the .Tasks documentation to reflect some of the things which I learned here as well as others that have posted here on the forum.

Yes, you are right there are some leaks in the documentation.
Just a one additional question. Did you set MPXHeader.ScheduleFrom property?
Example available in the MPXHeader class decription.