Hi,
I’m just trying to get a very simple test program running in the Mono environment and I am encountering an error message that I can’t make sense of. Firstly, I don’t have a valid license or even a trial license - but the program seems to run anyway. Can the errors be related to that?
The code I’m using is very simple:
using System;
using Aspose.Words;
class Hello {
static void Main() {
Console.WriteLine("Loading.");
Document doc = new Document(@"buggy3.doc");
Console.WriteLine("Saving HTML.");
doc.Save(@"buggy3.html", SaveFormat.Html);
}
}
And the error messagefrom Mono is:
Unhandled Exception: Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. —> System.ArgumentException: Comparer threw an exception.
` `at System.Collections.ArrayList.BinarySearch (System.Object value) [0x00000]
` `at ?.?.? (Int32 ?) [0x00000]
` `at ?.?.? (Int32 ?) [0x00000]
` `at ?.?.? () [0x00000]
` `at ?.?.? () [0x00000]
` `at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000]
` `— End of inner exception stack trace —
` `at Aspose.Words.Document.? (System.Exception ?) [0x00000]
` `at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000]
` `at Aspose.Words.Document…ctor (System.String fileName, LoadFormat loadFormat, System.String password) [0x00000]
` `at Aspose.Words.Document…ctor (System.String fileName) [0x00000]
` `at Hello.Main () [0x00000]
Thanks,
Mark.