Free Support Forum -

Error in converting .doc to .docx file - System.ArgumentNullException :Key can not be null-Parameter name:Key

We are using Aspose.Total and to convert a .doc file to docx.However,when we try to convert the attached file to .docx we notice the following run time error :-

"System.ArgumentNullException :Key can not be null,Parameter name:Key"

when we use the following:-

Document.asposeDoc=new Document(word2003Path)
asposeDoc.Save(word2007Path,SaveFormat.Docx); // Error is thrown here...

Could you please advice if there is anything wrong with the attached word file?

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I successfully converted your document to DOCX format using the latest version of Aspose.Words. Please try using Aspose.Words 5.2.0. You can download this version from here.

Best regards.