Greetings,
Our application converts tags like ##xxxx into actual values from our database by using the regEx replacements in Aspose words.
The code has been unchanged for years and it works great in most cases.
However, on passing the attached document through our application, we get an exception as below. Can you advise what is odd about this specific document that is choking Aspose Words?
[EndOfStreamException: Unable to read beyond the end of the stream.]
System.IO.__Error.EndOfFile() +56
System.IO.BinaryReader.FillBuffer(Int32 numBytes) +7670212
System.IO.BinaryReader.ReadUInt16() +20
ᝥ..(BinaryReader ۪, Boolean , Boolean ) +88
᰻.⑩.ክ(BinaryReader ۪, ֊ ᬙ) +540
᰻.⑩.⑫(BinaryReader ۪) +114
ᜠ.␢.(֗ , Int32 ) +58
ᜠ.␢.(Char ᬗ, Int32 ᢻ, ֗ , ᜴) +234
ᜠ.␢.(֗ , ᜴, , Int32 ງ, Int32 ؤ, Boolean ) +403
ᜠ.␢.(୦ ᬔ) +275
ᜠ.␢.(⑨ ) +47
ᜠ.␢.( ) +632
ᜠ.␢.Ⴆ(Int32 , Int32 ؤ) +422
ᜠ.␢.Ⴆ() +184
ᜠ.ᜟ.߃() +784
Aspose.Words.Document.Ӹ(Stream ӹ, LoadFormat Ӻ, String ӻ) +160
[FileCorruptedException: The document appears to be corrupted and cannot be loaded.]
Aspose.Words.Document.Ӽ(Exception ӽ) +73
Aspose.Words.Document.Ӹ(Stream ӹ, LoadFormat Ӻ, String ӻ) +512
Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password) +126
Aspose.Words.Document…ctor(String fileName) +9
WordMerge.PopulateWordDocument() +95
WordMerge.Page_Load(Object sender, EventArgs e) +133
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627