We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Project reading exception - Index was outside the bounds of the array error while reading from a file

Hi,

I have created a ms project with aspose.task.dll, i open it in MS Project 2010 every things working good but while reading that:

public MsProject(Stream file)
: this()
{
var project = new Aspose.Tasks.Project(file);
}

get error:
"Project reading exception "
(in inner exception :slight_smile:
"Index was outside the bounds of the array"


My aspose version is 9.4.0.0

Hi,

Thank you for contacting Aspose Support team.

We were able to reproduce the mentioned issue at our end and have logged it as TASKS-34615 in our issue tracking system for further investigation by our Product team. You’ll be notified here via this thread once there is some information available in this regard.

Thank you for your attention.

In log text (picture) is obvious the problem is in reading project calendars.
Could you give us a workaround?

Hi,

We are sorry but since the problem arises while loading the document, there is no alternate method that we can suggest for loading the problematic file in this case. It will be fixed in one of our subsequent versions and we’ll update you here once there is some information available in this regard.

Hi,

Thank you.
I find out the problem is exactly from predecessors of 4 activities.
In Gantt Chart view if i delete predecessors of these 4 activities: 9,10,11,12, it loads the file. i’ve attached file. this maybe help developers.
Any way thank you.

Hi,

Thank you for share the additional feedback. Our Product team will further investigate the issue and once there is some information available in this regard, we’ll update you here via this thread.

Hi

Does this bug exist in new versions? there is a bug fixed in ver 9.5.0, TASKSNET-706, with exact title of this exception.

Hi,


This has been fixed. Please try the latest version of the API for testing the issue at your end and let us know if you come across any problem in this regard.

Thanks a lot. I will check it :slight_smile:

You are welcome.