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

Free Support Forum - aspose.com

File format error

After upgrading to 5.1 I had this error crop up with a couple of documents. Here is one of them:

[Appending Task Documents] Last File = C:\Inetpub\wwwroot\secure_consultationconnection_com\SafetyWriter_v2\IndividualSafetyInstructions\sp\Remoción de paredes y pisos-Removal of Walls and Floors.doc [ Aspose.Words.UnsupportedFileFormatException: Unknown file format.
   at Aspose.Words.Document.?(Stream ?, LoadFormat ?, String ?)
   at Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password)
   at Aspose.Words.Document…ctor(String fileName)

I’ve attached the file. If it helps I think the lady who created these originally created them in docx, but I had her resave this to doc, but there may be some wierdness in it.

Thank you for your inquiry.
I managed to open this file with Aspose.Words 5.1.0 without issues. Please provide more information on how we can reproduce the problem. You wrote that it was originally a DOCX document but you attached a DOC. Maybe this makes difference. Please try opening both of them and check twice what version you are using.
Note that if you upgrade Aspose.Words and reconfigure references to its assembly some projects need to be rebuilt from very beginning. For instance if you have a GUI/CUI Windows application project you have to invoke Rebuild All. Otherwise it might be still referencing to the old assembly.