We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

System.ArgumentException on WordDocument.Open : An item with the same key has already been added.

Thread ID:





104300 Jul 9,2012 09:15 AM Jul 11,2012 02:31 AM ASP.NET MVC (Classic) 3
Tags: DocIO
Andy Calvert
Asked On July 9, 2012 09:15 AM

Hi there,

I'm having some trouble opening a specific .DOCX word document. When called WordDocument.Open  we receive the following error (stack trace included),

System.ArgumentException: An item with the same key has already been added.
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ParseBookmarkStart(XmlReader reader, IWParagraph paragraph)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ParseParagraph(XmlReader reader, IWParagraph paragraph)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ParseBody(XmlReader reader, IEntity entity)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ParseDocument(Stream stream)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ParseDocument(Package package)
   at Syncfusion.DocIO.DLS.Convertors.Word2010Parser.ReadDocument(ZipArchive zipArchive, Package package, WordDocument document)
   at Syncfusion.DocIO.DLS.DocxReader.Read(WordDocument doc)
   at Syncfusion.DocIO.DLS.DocxReader.Read(String documentPath, WordDocument doc)
   at Syncfusion.DocIO.DLS.WordDocument.Open(String fileName, FormatType formatType, String password)

I'm calling the basic open method (single string param for the file location). Any light you could shed on this would be greatly received,

Kind Regards


Deivaselvan Y [Syncfusion]
Replied On July 10, 2012 12:50 AM

Hi Andy,

Thank you for your interest in Syncfusion products.

The information provided is insufficient to reproduce the reported issue on our side.
Kindly provide us with the sample/code snippet along with the input template document you have used to reproduce the mentioned exception issue, So that we can analyze the issue further and provide you with appropriate details.

Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let us know if you have any questions.

Deiva selvan

Andy Calvert
Replied On July 10, 2012 04:22 AM

Thank you for your reply.

As requested i have created a support ticket, i look forward to your reply

Deivaselvan Y [Syncfusion]
Replied On July 11, 2012 02:31 AM

Hi Andy,

Thank you for your update.

Our engineer will assist you shortly.

Please let us know if you have any questions.

Deiva selvan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.