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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

104300 Jul 9,2012 01:15 PM UTC Jul 11,2012 06:31 AM UTC ASP.NET MVC (Classic) 3
loading
Tags: DocIO
Andy Calvert
Asked On July 9, 2012 01:15 PM UTC

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

Andy

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

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.

Regards,
Deiva selvan


Andy Calvert
Replied On July 10, 2012 08:22 AM UTC

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 06:31 AM UTC

Hi Andy,

Thank you for your update.

Our engineer will assist you shortly.

Please let us know if you have any questions.

Regards,
Deiva selvan


CONFIRMATION

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.

Warning Icon 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.Close Icon

;