Issue with word document header | The document appears to be corrupted and cannot be loaded

I am trying to process a word doucment using below sample of code. While creating a Document object using memory stream, error is thrown that is highlighted at the end.

Now, if I open the word document, just edit its header with a space, save it and return back to process it using below piece of code, everything works fine.

Not possible to do it for 1000s of documents.

DLL Version Used : 11.7.0.0

Dim ms As MemoryStream = New MemoryStream(WordFileBinaryData)
Dim convertWords As Aspose.Words.Document = Nothing
Try
convertWords = New Aspose.Words.Document(ms)
Catch ex As Exception
End Try

Error Message:
The document appears to be corrupted and cannot be loaded.
Hi,

Thanks for your inquiry. First off, I would suggest you please upgrade to the latest version of Aspose.Words (13.11.0) from the following link and see how it goes. I hope, this helps.
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

In case the problem still remains, please attach your input Word document you're getting this problem with here for testing. I will investigate the issue on my side and provide you more information.

Best regards,

Thank you. It fixed the issue.