Hi,
An exception is thrown while reading the MPP file attached.
System.ArgumentException:
‘An item with the same key has already been added. Key: 0. Parameter name: key’
I can see that this issue has been faced and then fixed many times in the last few years :
I get error:
public MsProject(Stream file)
: this()
{
project = new Aspose.Tasks.Project(file);
}
Exeption detail:: Aspose.Tasks.TasksReadingException: Project reading exception. —> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)<br style="box-sizing: border-box;">…
Hello Team,
I am getting following exception for reading mpp files with Aspose.Task.dll.
Aspose.Tasks for .NET 9.6.0.0 version. Reading project data in ‘MPP14’ format, created by ‘MSP2016’ started.
Aspose.Tasks.TasksReadingException: Project reading exception. —> System.ArgumentException: An entry with the same key already exists.
Please suggest solution.
Thanks & Regards,
Daniel
Thank you for your help!
MPP_Import_Fail.zip (74.9 KB)
@Opus_Team
Hello! What version of Aspose.Tasks do you use? Aspose.Tasks for Java 19.9 or Aspose.Tasks for .NET 19.9?
I have observed the issue shared by you and have created an issue with ID TASKSJAVA-991 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be addressed.
Hi ! We are using Aspose.Tasks for .NET 19.6.0
Can you check it on the latest Aspose.Tasks for .NET 19.9?
Sorry I cannot try with the latest version right now, but I will upgrade asap. Could you please try with the latest version if you reproduce it or not ?
Thank you
There is no issue on Aspose.Tasks for .NET 19.9.