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

Free Support Forum - aspose.com

Aspose.Word DOCX not recognized as legitimate file

Invoice #121018035401 purchased October 18, 2012
Prior inquiries went unanswered. So let me try again.

Aspose.Word (.NET) doesn’t recognize “DOCX” as legitimate.

Test:

1) Submit the document in word 97 format (doc)
2) Submit the document in word 2013 format (docx)

First file processed.
Second file failed with an exception.

Exception dump:

{"ClassName":"Aspose.Words.FileCorruptedException","Message":"The document appears to be corrupted and cannot be loaded.","Data":null,"InnerException":{"ClassName":"System.NullReferenceException","Message":"Object reference not set to an instance of an object.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at xda075892eccab2ad.xc1b08afa36bf580c.xa9aaee2edd3cd025(String x971e83bc97861294, Byte[] xf9a0d04800d70471, Int32 x10aaa7cdfa38f254)\r\n at x79490184cecf12a1.xc37fee571c29ba92.xdafccb198ba91439()\r\n at x79490184cecf12a1.xc37fee571c29ba92.x2506b757d67702ec()\r\n at x79490184cecf12a1.xc37fee571c29ba92.x902b6f807c71becd(x3dabda6865ed239d x8ad4cdceb54e447f)\r\n at x79490184cecf12a1.xc37fee571c29ba92.xd4c5b858945b0ab2(x3dabda6865ed239d x8ad4cdceb54e447f)\r\n at x79490184cecf12a1.xc37fee571c29ba92.x06b0e25aa6ad68a9(xa52ef41af20225f0 xe134235b3526fa75)\r\n at x79490184cecf12a1.xa52ef41af20225f0.DoRead()\r\n at x79490184cecf12a1.x11e1346c12ead315.x06b0e25aa6ad68a9()\r\n at x79490184cecf12a1.xae13d15563a3a703.x748a2047fcb706ad()\r\n at x79490184cecf12a1.xae13d15563a3a703.x06b0e25aa6ad68a9()\r\n at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nxa9aaee2edd3cd025\nAspose.Words, Version=11.4.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56\nxda075892eccab2ad.xc1b08afa36bf580c\nVoid xa9aaee2edd3cd025(System.String, Byte[], Int32)","HResult":-2147467261,"Source":"Aspose.Words","WatsonBuckets":null},"HelpURL":null,"StackTraceString":" at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)\r\n at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)\r\n at Aspose.Words.Document..ctor(Stream stream, LoadOptions loadOptions)\r\n at Aspose.Words.Document..ctor(Stream stream)\r\n at Originality.Domain.Services.Default.TextExtractioinService.ExtractTextFromWord(Byte[] buffer, IContent content)

Hi,

Thanks for your inquiry. Please attach your input Word documents you're getting these problems with here for testing. We will investigate the issue on our end and provide you more information.

Best regards,